Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (edited)

Hi,

On my colum right file i would like to add this,

 

If the Manufacturers canon (id=6) them show a box, if it is not then carry on.

 

How do convert this statement to PHP???

 

Any one one of any good books too!

 

sim

Edited by simaster99
Posted
Hi,

On my colum right file i would like to add this,

 

If the Manufacturers canon (id=6) them show a box, if it is not then carry on.

 

How do convert this statement to PHP???

 

Any one one of any good books too!

 

sim

 

if ( isset($HTTP_GET_VARS['manufacturers_id']) && $HTTP_GET_VARS['manufacturers_id'] == '6' ){
 include(DIR_WS_BOXES . '<my_box>.php');
}

Posted

Not a book but a good site w3.schools.com

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Posted

Hi,

 

That for that,

 

 

  if ( isset($HTTP_GET_VARS['manufacturers_id']) && $HTTP_GET_VARS['manufacturers_id'] == '6' ){
 include(DIR_WS_BOXES . 'Guarantee_seal.php');}

this puts the seal if the 'manufacturers_id' = 6, but if the product comes from 'manufacturers_id' is 6 is doesnt. how do i work it so it does?

 

this doesnt help!!!

 

if (isset($HTTP_GET_VARS['products_id'])) && $HTTP_GET_VARS['manufacturers_id'] == '6' ){
 include(DIR_WS_BOXES . 'Guarantee_seal.php');}

Posted

It depends what page your coming from, so I`m guessing, but this might do it:

 

 

if ( (isset($HTTP_GET_VARS['products_id'])) && ($HTTP_GET_VARS['manufacturers_id'] == '6' || $HTTP_GET_VARS['filter_id'] == '6' ) ){

include(DIR_WS_BOXES . 'Guarantee_seal.php');}

 

 

:-"

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

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