SC_CART_V2 documentation?

Questions and answers about ShopSite Custom Templates

SC_CART_V2 documentation?

Postby gentlemans01 » Mon Mar 20, 2023 9:19 am

We have a custom cart we developed several years ago. Wanting to make some updates.

Until now, we have been using SC_CART to create a table of products.

I see that SC_CART_V2 was added, which conveniently presents results as divs instead of a table.

However, I can't find any documentation about SC_CART_V2. Notably:

Can I specify the product fields and their order? With SC_CART, you can use
Code: Select all
[-- SC_Cart image delete name sku total price quantity --]


but when I use
Code: Select all
[-- SC_Cart_V2 image delete name sku total price quantity --]
I get an error:

Code: Select all
SC_CART_V2: 7 parameters found for this tag, expecting 0 SC_Cart_V2 image delete name sku total price quantity --]


Please advise if SC_CART_V2 has the same capabilities, perhaps with a different syntax.
Chris
https://www.historicalemporium.com
gentlemans01
 
Posts: 40
Joined: Sun Aug 27, 2006 11:32 pm

Re: SC_CART_V2 documentation?

Postby cyoung » Mon Mar 20, 2023 1:51 pm

The div-based tags and a lot of the newer tags are listed in ShopSite's online template cookbook.

Here is the cookbook link to the new tags by version page, sc_cart_v2 was added in version12:
https://www.shopsite.com/templates/cookbook/tags-by-version.html#12

There are no optional parameters for the div-based tags, I guess the idea is that if you use it then you will be controlling how it looks via CSS and so you can re-arrange or not show certain columns via CSS.

Note that one difference between the data available is there is no Each value output by the newer div-based tag.

We hope this information is helpful.
cyoung
 
Posts: 134
Joined: Wed Nov 09, 2016 11:01 am

Re: SC_CART_V2 documentation?

Postby gentlemans01 » Mon Mar 20, 2023 4:15 pm

Yes, thanks for the confirmation that the new tags don't allow specifying / ordering fields.

Styling with CSS is good, but re-ordering divs is awkward. I'm proceeding with using some jquery to juggle the divs around.

Appreciate the quick reply!
Chris
https://www.historicalemporium.com
gentlemans01
 
Posts: 40
Joined: Sun Aug 27, 2006 11:32 pm


Return to Custom Template Questions

Who is online

Users browsing this forum: No registered users and 19 guests

cron