Jump to content

Call on addons via smarty tags


kgerm7513

Recommended Posts

Hey all,

 

I'm looking to return different values based off the addons that were selected during product configuration.

 

I tried this, which didn't work:

 

{if $addon.id eq "1"}
<div class="col-sm-4 item-price">
<span></span>
</div>
{else}
<div class="col-sm-4 item-price">
<span>{$addon.totaltoday}</span>
<span class="cycle">{$addon.billingcyclefriendly}</span>
</div>
{/if}

 

Which aims to on the summary page modify the spot where it should typically show the add-on price.

 

Right now, addon.id 1 is set to free because I have other login which (once this part is done) will have a 2rd config step after the user clicks Checkout.

 

After this second step is when I do the actual fee charging based off options they select in there... so I am trying to modify where it says "$0.00" or "FREE!" right now so it's just blank...

 

Also... Would anyone know how to ALSO either hide or modify the Ajax order summary where it shows this, so I can hide the price there based on whether the addon is selected as well?

 

Any help would be appreciated!

Edited by kgerm7513
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