X
X
  • Quick Quotation

  • We'll get back to you within 10 minutes

  • All of our quotations are provided as a fully inclusive price. There are no hidden extras.

  • This field is for validation purposes and should be left unchanged.
Quick Quotation Get a Quick Quotation

Up to

30% CHEAPER

THAN OUR MAIN COMPETITORS

Service you can depend on!
 

List view php

List view: copied list view php to products_page??
Detail pages=categories (no link) using custom products page
Index/List has to be a different “products page” format
Create page – add wpsc category view (full width template -blx?).

blx list view php:
<?php
global $wp_query, $wpdb;
?>
<div id=”list_view_products_page_container”>

<?php wpsc_output_breadcrumbs(); ?>

<?php do_action(‘wpsc_top_of_products_page’); // Plugin hook for adding things to the top of the products page, like the live search ?>

<?php if(wpsc_display_categories()): ?>
<?php if(wpsc_category_grid_view()) :?>
<div>
<?php wpsc_start_category_query(array(‘category_group’=> 1, ‘show_thumbnails’=> 1)); ?>
<a href=”<?php wpsc_print_category_url();?>” title=”<?php wpsc_print_category_name();?>”>
<?php wpsc_print_category_image(get_option(‘category_image_width’), get_option(‘category_image_height’)); ?>
</a>
<?php wpsc_print_subcategory(“”, “”); ?>
<?php wpsc_end_category_query(); ?>
</div><!–close wpsc_categories–>
<?php else:?>
<ul>
<?php wpsc_start_category_query(array(‘category_group’=> 1, ‘show_thumbnails’=> get_option(‘show_category_thumbnails’))); ?>
<li>
<?php wpsc_print_category_image(get_option(‘category_image_width’), get_option(‘category_image_height’)); ?>

<a href=”<?php wpsc_print_category_url();?>”><?php wpsc_print_category_name();?></a>
<?php if(get_option(‘wpsc_category_description’)) :?>
<?php wpsc_print_category_description(“<div class=’wpsc_subcategory’>”, “</div>”); ?>
<?php endif;?>

<?php wpsc_print_subcategory(“<ul>”, “</ul>”); ?>
</li>
<?php wpsc_end_category_query(); ?>
</ul>
<?php endif; ?>
<?php endif; ?>

<?php if(wpsc_display_products()): ?>
<?php if(wpsc_is_in_category()) : ?>
<div>
<?php if(get_option(‘show_category_thumbnails’) && wpsc_category_image()) : ?>
<img src='<?php echo wpsc_category_image(); ?>’ alt='<?php echo wpsc_category_name(); ?>’ title='<?php echo wpsc_category_name(); ?>’ />
<?php endif; ?>

<?php if(get_option(‘wpsc_category_description’) &&  wpsc_category_description()) : ?>
<?php echo wpsc_category_description(); ?>
<?php endif; ?>
</div><!–close wpsc_category_details–>
<?php endif; ?>

<?php if(wpsc_has_pages_top()) : ?>
<div>
<?php wpsc_pagination(); ?>
</div><!–close wpsc_page_numbers_top–>
<?php endif; ?>
<table>
<?php /** start the product loop here */?>
<?php $alt = 0;    ?>
<?php while (wpsc_have_products()) :  wpsc_the_product(); ?>
<?php
$alt++;
if ($alt %2 == 1) { $alt_class = ‘alt’; } else { $alt_class = ”; }
?>
<tr>
<td width=”40%”>
<h2>
<?php if(get_option(‘hide_name_link’) == 1) : ?>
<?php echo wpsc_the_product_title(); ?>
<?php else: ?>
<a href=”<?php echo wpsc_the_product_permalink(); ?>”><?php echo wpsc_the_product_title(); ?></a>
<?php endif; ?>
<?php echo wpsc_edit_the_product_link(); ?>
</h2>
</td>
<?php if(wpsc_show_stock_availability()): ?>
<td>
<?php if(wpsc_product_has_stock()) : ?>
<div id=”stock_display_<?php echo wpsc_the_product_id(); ?>”><?php _e(‘Product in stock’, ‘wpsc’); ?></div>
<?php else: ?>
<div id=”stock_display_<?php echo wpsc_the_product_id(); ?>”><?php _e(‘Product not in stock’, ‘wpsc’); ?></div>
<?php endif; ?>
</td>
<?php endif; ?>

<td>
<?php do_action(‘wpsc_product_before_description’, wpsc_the_product_id(), $wp_query->post); ?>
</td>
<td class=’wpsc_price_td’>
<?php if(wpsc_product_on_special()) : ?>
<p><?php echo wpsc_product_normal_price(); ?></p>
<?php endif; ?>
<p id=”product_price_<?php echo wpsc_the_product_id(); ?>”><?php echo wpsc_the_product_price(); ?></p>
</td>

<td>
<?php if(wpsc_product_external_link(wpsc_the_product_id()) != ”) : ?>
<?php    $action =  wpsc_product_external_link(wpsc_the_product_id()); ?>
<?php else: ?>
<?php    $action =  wpsc_this_page_url(); ?>
<?php endif; ?>
<form class=’product_form’ id=”product_<?php echo wpsc_the_product_id(); ?>” enctype=”multipart/form-data” action=”<?php echo $action; ?>” method=”post” name=”product_<?php echo wpsc_the_product_id(); ?>”>
<?php do_action ( ‘wpsc_product_form_fields_begin’ ); ?>

<?php if(wpsc_has_multi_adding()): ?>
<div>
<label for=”wpsc_quantity_update_<?php echo wpsc_the_product_id(); ?>”><?php _e(‘Quantity’, ‘wpsc’); ?>:</label>
<input type=”text” id=”wpsc_quantity_update_<?php echo wpsc_the_product_id(); ?>” name=”wpsc_quantity_update” size=”2″ value=”1″ />
<input type=”hidden” name=”key” value=”<?php echo wpsc_the_cart_item_key(); ?>”/>
<input type=”hidden” name=”wpsc_update_quantity” value=”true” />
</div><!–close quantity_container–>
<?php endif ;?>
<input type=”hidden” value=”add_to_cart” name=”wpsc_ajax_action” />
<input type=”hidden” value=”<?php echo wpsc_the_product_id(); ?>” name=”product_id” />

<?php if((get_option(‘hide_addtocart_button’) == 0) &&  (get_option(‘addtocart_or_buynow’) !=’1′)) : ?>
<?php if(wpsc_product_has_stock()) : ?>
<div>
<?php if(wpsc_product_external_link(wpsc_the_product_id()) != ”) : ?>
<?php $action = wpsc_product_external_link( wpsc_the_product_id() ); ?>
<input type=”button” value=”<?php echo wpsc_product_external_link_text( wpsc_the_product_id(), __( ‘Buy Now’, ‘wpsc’ ) ); ?>” onclick=”return gotoexternallink(‘<?php echo $action; ?>’, ‘<?php echo wpsc_product_external_link_target( wpsc_the_product_id() ); ?>’)”>
<?php else: ?>
<input type=”submit” value=”<?php _e(‘Add To Cart’, ‘wpsc’); ?>” name=”Buy” id=”product_<?php echo wpsc_the_product_id(); ?>_submit_button” />
<?php endif; ?>
<div>
<img title=”Loading” alt=”Loading” src=”<?php echo wpsc_loading_animation_url(); ?>” />
<?php _e(‘Updating cart…’, ‘wpsc’); ?>
</div><!–close wpsc_loading_animation–>
</div><!–close wpsc_buy_button_container–>
<?php else : ?>
<p><?php _e(‘This product has sold out.’, ‘wpsc’); ?></p>
<?php endif ; ?>
<?php endif ; ?>
<?php do_action ( ‘wpsc_product_form_fields_end’ ); ?>
</form>
</td>
</tr>
<?php endwhile; ?>
<?php /** end the product loop here */?>
</table>

<?php if(wpsc_product_count() == 0):?>
<p><?php  _e(‘There are no products in this group.’, ‘wpsc’); ?></p>
<?php endif ; ?>

<?php do_action( ‘wpsc_theme_footer’ ); ?>

<?php if(wpsc_has_pages_bottom()) : ?>
<div>
<?php wpsc_pagination(); ?>
</div><!–close wpsc_page_numbers_bottom–>
<?php endif; ?>
<?php endif; ?>
</div><!–close list_view_products_page_container–>

Leave a Reply

Call Now Button
If your booking is in the next 12 hours we recommend calling our office on 02072543344 to make sure we have a car available for you.