Jump to content

I am in need of some help with a customer field and condition


Buzz

Recommended Posts

Hi I have looked through all the pages in this forum for customization and integration question and did not have any luck with my particular issue there was some that was some what close tho.

Here is my issue I need to edit my cart page to reflect the following

 

I have a product addon setup that requires a custom fields use.

I was wanting the page to behave in this manor

1 client is on order page for product the order page for product shows the addon(s) with a check box

2 client checks yes for the addon

3 the order form then displays or grants access to the custom fields

4 if client does not check yes for addon the customer fields are not required so should not show or at least should not be able to be used.

 

I think it could be quite possible to simply add the required coding to the existing addon.tpl

to change "cart.php?a=confproduct&i=0" if checkbox in the addon.tpl = true to another page with the custom fields or something to this effect

 

but any suggestions will be welcomed as I have no clue how to do it at all

Link to comment
Share on other sites

well with a good bit of searching I found out what page I am needing to edit and that it deals with smarty not php

So here is the code I am wanting to be edited.

{if $addons}

<p class="cartsubheading">{$LANG.cartaddons}</p>

<p>{$LANG.orderaddondescription}</p>

<div class="cartbox">

<table>

{foreach key=num item=addon from=$addons}

<tr><td>{$addon.checkbox}</td><td><label for="a{$addon.id}"><strong>{$addon.name}</strong> - {$addon.description} ({$addon.pricing})</label></td></tr>

{/foreach}

</table>

</div>

{/if}



{if $customfields}

<p class="cartsubheading">{$LANG.orderadditionalrequiredinfo}</p>

<p>{$LANG.cartcustomfieldsdesc}</p>

<div class="cartbox">

<table>

{foreach key=num item=customfield from=$customfields}

<tr><td>{$customfield.name}:</td><td>{$customfield.input} {$customfield.description}</td></tr>

{/foreach}

</table>

</div>

{/if}

Now I am sure the part that needs to be edited is the $customfields section of the above code

the condition would be the $addon section of code above.

The only issue is figuring out what code to place and where

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