Jump to content

Hidden Configurable Options


nimonogi

Recommended Posts

Hello,

 

Since we are setting Configurable Options as Hidden in WHMCS, why they are displayed at cart.php?a=view under the product? How can we hide them?

Those are discontinued options and there is no reason to be displayed on cart since the customer can't choose them.

 

Thanks.

 

Capture.PNG

Link to comment
Share on other sites

I have the same problem , i have reported to whmcs by opened a support ticket. I have received just a case number, but without solution yet...Look at the image below, i have plenty of hidden configuration options that are supposed to be hidden but still showing in cart......:mad::mad::mad:

 

 

config_options.png

Link to comment
Share on other sites

@brian! is there any quick hack until WHMCS resolve this issue?

has someone turned on the bat signal? :)

aaaBatSignal_Halloween_UseTHIS.gif

 

I don't know if you're reporting this as an issue with v6.3 - if so, I can't really help as I haven't updated to it yet - but working from v6.2.2, i'll suggest what I can.

 

for the order summary box in the cart (cezar), it doesn't have a variable for each config option to show whether it should be hidden or not, so the best quick hack for this would be to hide config options that are priced at 0.00 - the downside is that would also hide existing options that are free, e.g in cezar's case, it would probably hide the "ISO Image" choice as all the options seem to be free... however, it's only the summary and I suspect the choice would be shown on the invoice and/or email.

 

so in ordersummary.tpl @ line 10, you could change...

 

    {if $configoption}

to...

 

    {if $configoption.recurring neq "{$currency.prefix}0.00{$currency.suffix}"}

for the viewcart (nomonogi), you could do something similar and change...

 

                                                    {foreach key=confnum item=configoption from=$product.configoptions}
                                                        » {$configoption.name}: {if $configoption.type eq 1 || $configoption.type eq 2}{$configoption.option}{elseif $configoption.type eq 3}{if $configoption.qty}{$configoption.option}{else}{$LANG.no}{/if}{elseif $configoption.type eq 4}{$configoption.qty} x {$configoption.option}{/if}<br />
                                                   {/foreach}

to...

 

                                                    {foreach key=confnum item=configoption from=$product.configoptions}
                                                   {if $configoption.recurring neq "{$currency.prefix}0.00{$currency.suffix}"}
                                                        » {$configoption.name}: {if $configoption.type eq 1 || $configoption.type eq 2}{$configoption.option}{elseif $configoption.type eq 3}{if $configoption.qty}{$configoption.option}{else}{$LANG.no}{/if}{elseif $configoption.type eq 4}{$configoption.qty} x {$configoption.option}{/if}<br />
                                                   {/if}
                                                   {/foreach}

looking at v6.2.2, hiding configuration groups correctly hides them from both the configureproduct page and the order summary, but it seems that if you hide all the options within a configuration group, it will still show one of them... which I guess makes some sort of sense so as to not shown an empty group.

 

hopefully these quick hacks will help in your situation until the issue is resolved. :idea:

Edited by brian!
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