Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (edited)

Hi :D

 

I can't get these two contributions working together:

Actualy Price in Pull down option menus

QTpro v1.0 - Quantity Tracking Professional

 

The actual attributes prices (instead of eg. +50 €) won't show up in product_info.php when I'm using QTPro.

In includes/classes/pad_base.php

		  if ($products_options['options_values_price'] != '0') {
		$products_options_array[sizeof($products_options_array)-1]['text'] .= ' (' . $products_options['price_prefix'] . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($this->products_tax_class_id)) .')';
	  }

Changed to:

 $original_price = $product_info['products_price'];
	$option_price = $products_options['options_values_price'];
	if ($products_options['price_prefix'] == "-") // in case price lowers, don't add values, subtract.
  {
	$show_price = 0.0 + $original_price - $option_price; // force float (in case) using the 0.0;
  } else {
		 $show_price = 0.0 + $original_price + $option_price; // force float (in case) using the 0.0;
  }
  if ($products_options['options_values_price'] != '') {
  $products_options_array[sizeof($products_options_array)-1]['text'] .= ' ('
  . $currencies->display_price($products_options['options_values_price'], tep_get_tax_rate($this->products_tax_class_id)) .')';
}

 

Does anyone have a clues why it's not working? :blink:

 

Best wishes,

Peter

Edited by petsk

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