Jump to content

Modifying the shopping cart


Recommended Posts

Hi my shopping cart currently has 5 columns:

Product, availability, unit price, quantity, total

In the product is description, Size, Colour. I want to add 2 new columns for the size and colour so they are not with the product description.

I have found how to make new columns in the shopping cart but not how to make the correct information show in them can someone point me in the right direction please. :-)

Link to comment
Share on other sites

Right I have now sorted out how to put my attribute in a new column but it show to much information my code is



{if $product.attributes}
getProductLink($product.id_product, $product.link_rewrite, $product.category)|escape:'htmlall':'UTF-8'}">{$product.attributes|escape:'htmlall':'UTF-8'}
{if $product.attributes}{if isset($product.attributes_each.2)}{$product.attributes_each.2}{/if}{/if}
{if $product.attributes}{if isset($product.attributes_each.1)}{$product.attributes_each.1}{/if}{/if}
{/if}



But it shows the attribute like this 'size:10' but I don't want it to show the first part so remove 'size:' so i only want it to show the the '10' part.

Any help would be great I'm so close to finishing but his is holding me up.
Thanks

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...