Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

possible hack site attack warning


Recommended Posts

anyway, that code doesn't wotk. error 500

both 

    function add_cart($products_id, $qty = '1', $attributes = '', $notify = true) {
    $qty = ($qty > 10 ? 10 : $qty);

or

    function add_cart($products_id, $qty = 10, $attributes = '', $notify = true) {
    $qty = ($qty > 10 ? 10 : $qty);

Link to comment
Share on other sites

On 5/18/2024 at 12:22 AM, mafiouso said:

anyway, that code doesn't wotk. error 500

If you remove the one line does it work again? If not, something else was changed.

For the function line, as mentioned, that doesn't matter is normal code since there will always be a quantity.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

On 5/20/2024 at 11:51 AM, Jack_mcs said:

If you remove the one line does it work again? If not, something else was changed.

For the function line, as mentioned, that doesn't matter is normal code since there will always be a quantity.

If you remove the one line does it work again? If not, something else was changed.??

what is the "the one line"    $qty = ($qty > 10 ? 10 : $qty);??

is so, yes it works again when removed

Link to comment
Share on other sites

Assuming the ?? is not part of the code, I can't say why it isn't working since it is valid code. Please attached the whole function here.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

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
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...