Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hello all,

I have a little problem with the great dangling_carrot contribution, I have also the Pricebreak contribution installed, that one with the PriceFormatter.php

 

It seems that everything works well, but if I have a product as a gift with the price of 0.00, the product also appears in the "normal" catalog. But it should only appear in the shopping cart when the amount of the dangling_carrot is reached, and not in the catalog.

 

So I changed the product to inactive, and removed the

 

AND p.products_status = '1'

 

from catalog/shopping_cart.php. Now the "carrot" appears on the shopping cart with the button add etc, but because the product is inactive, it doesnt appears in the list of the shopping cart, I cant add it to the list.

 

I hope that somebody can help me, it is a great contribution who increases the incomes of your shop!

 

Best regards,

Lucas

  • 3 years later...
Posted

In Home and Business

 

I think your code is great

what i am trying to do is shadow out both company and tva_intracom(in bold) i think i have part2 right but part1 will not shadow both can you please help?

 

part1

 

<td class="main"><?php echo tep_draw_radio_field('usertype', 'h', '', 'onclick=company tva_intracom.disabled=true') . '  ' . HOME . '  ' . tep_draw_radio_field('usertype', 'b', '', 'onclick=company tva_intracom.disabled=false') . '  ' . BUSINESS . ' ' . (tep_not_null(ENTRY_USERTYPE_TEXT) ? '<span class="inputRequirement">' . ENTRY_USERTYPE_TEXT . '</span>': ''); ?></td>

 

 

 

Part2

 

<td class="main"><?php echo tep_draw_input_field('company', '', 'disabled') . ' ' . (tep_not_null(ENTRY_COMPANY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COMPANY_TEXT . '</span>': ''); ?></td>

</tr>

<!--BOF for VAT INTRACOM_v3.3 //-->

<tr>

<td class="main"><?php echo ENTRY_TVA_INTRACOM; ?></td>

<td class="main"><?php echo tep_draw_input_field('tva_intracom', '', 'disabled') . ' ' . (tep_not_null(ENTRY_TVA_INTRACOM_TEXT) ? '<span class="inputRequirement">' . ENTRY_TVA_INTRACOM_TEXT . '</span>': ''); ?></td>

</tr>

 

 

Thanks Frank

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

×
×
  • Create New...