Jump to content

Product bundles


Recommended Posts

I am creating product bundles,with dedicated servers and cpanel/whm. So after going through the order, i come to the final page, and i have 2 questions..

 

1. Is there a smarty tag/variable what ever its called for the savings for that item being added ?

2. Is there a smarty tag/variable what ever its called for the TOTAL savings for all items being added ?

 

 

10-01-2017 10-29-14 PM.png

Link to comment
Share on other sites

1. Is there a smarty tag/variable what ever its called for the savings for that item being added ?

there is with v7.1, but it isn't used by default in the template for products (but is for domains and addons I think) - I don't believe this feature is available in v6....

 

in standard/cart/viewcart.tpl, you could change ~line 135...

 

<span>{$product.pricing.totalTodayExcludingTaxSetup}</span>

to...

 

<span>{$product.pricingtext}</span>

that should give you the original price crossed out...

 

GecTz5m.png

 

 

2. Is there a smarty tag/variable what ever its called for the TOTAL savings for all items being added ?

unfortunately, not in one simple variable - if you *really* wanted to get the figure, you could get it by looping through the addons, domains and products arrays and create a running total - it would be fascinating, yet complicated, Smarty coding to write - but it would definitely work. :idea:

 

lTA86ho.png

 

you're going to have to trust me that the saving totals, in the above image, aren't faked - they're actual running totals for each order type. :)

 

when i've got more time, this is going to need significant additional testing, using various cart scenarios - but I was initially just interested to see if a solution could be achieved in v7.1, and I found the answer to that! :idea:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated