View Single Post
  #412  
Old 09-26-2012, 01:22 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart Ability Template v4.4.x

Quote:
On a product that has variants when you click add to cart, it normally redirects you to the product details page so you can select the options. This does not work in the new template.

Actually it does work on the template, just perhaps not on the home featured items, but you can use code like this...

Eg. skin/ability/customer/main/featured.tpl

Replace..

Quote:
<p><a class="add_link" href="cart.php?mode=add&amp;productid={$product.pr oductid}&amp;amount=1">{$lng.lbl_add_to_cart}</a></p>

With...

Quote:
{if !$product.variantid}
<p><a class="add_link" href="cart.php?mode=add&amp;productid={$product.pr oductid}&amp;amount=1">{$lng.lbl_add_to_cart}</a></p>
{else}
<p><a class="add_link" href="product.php&amp;productid={$product.producti d}">View Options</a></p>
{/if}

Quote:
I am having some alignment issues and can't find the controlling CSS with firebug

Just add some padding-top to the product title (grid mode)...

skin/ability/custom/css/common.css

Replace...

Quote:
ul.grid_view li .product_block h2 { width: 100%; height: 50px; margin: 0; padding: 0 0 10px 0; }

With...
Quote:
ul.grid_view li .product_block h2 { width: 100%; height: 50px; margin: 0; padding: 20px 0 10px 0; }
__________________
xcartmods.co.uk
Reply With Quote