Jump to content

Need Help


Guest PIP

Recommended Posts

Hi Boys,

I need some help here.

I have make this mod in the view_cart.php

A mod that will check if at least there is 1 product from one of the three categories.

Now I need to make a check on how many products there is add to the basket from the same catergory.

Is there anybody how have any idea please?

Here is the mod as it look like now:

$x = 0;

while($x != $cart->num_items($prefix,$session))

{

if ($valid_order == "No") {

if ($contents[cat_id][$x] == $must_order_pc || $contents[cat_id][$x] == $must_order_pakke || $contents[cat_id] [$x] == $must_order_nb)

{ $valid_order = "Yes";}

}

Thanks

PIP

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.

×
×
  • Create New...