Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hey now, Jack.

 

Took another stab at installing the contribution on my site. Checked functionality after uploading every page, and got no other error messages, until the last step for the product info page.

 

Found line 137, and added the code from the forum page to my product info page to get:

 

137 | if ($products_options['options_values_price'] != '0') {

138 |// BOC Attribute Percentage

139 | if ($products_options['price_prefix'] == ATTRIBUTE_PERCENTAGE_SYMBOL)

140 | $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies-display_price_percentage($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';

141 | else

142 |// EOC Attribute Percentage

 

(XXX | added for clarity - not part of the code on the page)

 

Now getting a different error message:

 

Parse error: syntax error, unexpected T_IF in /home/kvrperf/public_html/shop/product_info2.php on line 139

 

This store also has the "Add Quantity Pulldown to Prod Info Page" contribution added to it. Source code of the product_info.php file is available at: http://www.leeper.info/product_info2.php.zip.

 

Thanks in advance for any help you or the forum members can provide.

--

Roger

Posted
Hey now, Jack.

 

Took another stab at installing the contribution on my site. Checked functionality after uploading every page, and got no other error messages, until the last step for the product info page.

 

Found line 137, and added the code from the forum page to my product info page to get:

 

137 | if ($products_options['options_values_price'] != '0') {

138 |// BOC Attribute Percentage

139 | if ($products_options['price_prefix'] == ATTRIBUTE_PERCENTAGE_SYMBOL)

140 | $products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies-display_price_percentage($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';

141 | else

142 |// EOC Attribute Percentage

 

(XXX | added for clarity - not part of the code on the page)

 

Now getting a different error message:

 

Parse error: syntax error, unexpected T_IF in /home/kvrperf/public_html/shop/product_info2.php on line 139

 

This store also has the "Add Quantity Pulldown to Prod Info Page" contribution added to it. Source code of the product_info.php file is available at: http://www.leeper.info/product_info2.php.zip.

 

Thanks in advance for any help you or the forum members can provide.

--

Roger

Roger,

 

Without knowing what is going on with your shop, just looking at the code you presented above, it looks like you are missing some curly brackets ('}' and '{').

 

Try changing the above code to this:

137 |		 if ($products_options['options_values_price'] != '0') {
138 |// BOC Attribute Percentage
139 |		  if ($products_options['price_prefix'] == ATTRIBUTE_PERCENTAGE_SYMBOL) {
140 |			$products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies-display_price_percentage($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
141 |		  } else {
142 |// EOC Attribute Percentage

 

There also needs to be a '}' at the end of the containing if statement, but I suspect it's there.

 

Good Luck,

-Skittles

Posted

Thanks, Skittles, but with the brackets added, I still get the same error message.

--

Roger

Roger,

 

Without knowing what is going on with your shop, just looking at the code you presented above, it looks like you are missing some curly brackets ('}' and '{').

 

Try changing the above code to this:

137 |		 if ($products_options['options_values_price'] != '0') {
138 |// BOC Attribute Percentage
139 |		  if ($products_options['price_prefix'] == ATTRIBUTE_PERCENTAGE_SYMBOL) {
140 |			$products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies-display_price_percentage($products_options['options_values_price'], tep_get_tax_rate($product_info['products_tax_class_id'])) .') ';
141 |		  } else {
142 |// EOC Attribute Percentage

 

There also needs to be a '}' at the end of the containing if statement, but I suspect it's there.

 

Good Luck,

-Skittles

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