Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product Attributes


OMalleys

Recommended Posts

I sell products by weight, my base weight is 100g but I would like to encourage larger purchases by offering a 250g pack with a slight saving: say 2.3 x the 100g price.

 

I think the best way to do this would be to have two product attributes one for 100g which displays the base price and one for 250g which displays the base price x 2.3

 

However the product attributes only allows you to add a fixed amount to each product which would mean manually calculating the x2.3 price for every product, is there a contribution which can allow attribute prices to be a multiplier or percentage of the base product price?

 

Maybe there is an easy way but I am new to this whole system - although I am having great fun figuring it all out :rolleyes:

 

......Any pointers would be appreciated!

Link to comment
Share on other sites

PLEASE, PLEASE, PLEASE - somebody tell me how to have two prices for one product ie: a 100gram price and a 250gram price, and ideally have the software calculate the second price by multiplying the base price?

This is the only thing holding up my site and I don't understand enough to write it myself!

Thanks (in hope!) ;)

Link to comment
Share on other sites

SORTED :D

 

Got Actual Attribute Price V1.0 This is a brilliant mod get it here:

http://www.oscommerce.com/community/contributions,1716

Just make sure to set the actual price the same as the attribute 1 price.

Thanks to Jason & Chris for their hard work on this mod

 

Just have to figure how to take into account the extra weight of attribute 2 for shipping!

Link to comment
Share on other sites

Looks like I have a thread all of my own!

I can't believe that other people don't need this feature?

I have one remaining problem - AAP works fine except ..... the total showing in the cart box is incorrect (it is less than it is ment to be for products with attribute 2 eg. product @ ?1.66 shows up in the total as ?1.44 (although thr price beside the product is correct) Funny / frustrating thing is that when customer gets to checkout > confirm order the order total for the goods is correct!!

I can modify the shopping cart box to not show the total by changing this:

 

    if (!$cart_empty) {
   $info_box_contents[] = array('align' => 'left',
                                'text' => tep_draw_separator()
                          );
 $info_box_contents[] = array('align' => 'right',
                                'text'  => $currencies->format($cart->show_total())
                               );
 }

 new infoBox($info_box_contents);
?>
           </td>
         </tr>
<!-- shopping_cart_eof //-->
{

 

to this:

 

  if (!$cart_empty) {
   $info_box_contents[] = array('align' => 'left',
                                'text' => tep_draw_separator()
                          );
 /*
 $info_box_contents[] = array('align' => 'right',
                                'text'  => $currencies->format($cart->show_total())
                               );
*/
 }

 new infoBox($info_box_contents);
?>
           </td>
         </tr>
<!-- shopping_cart_eof //-->

 

in /web/osc/catalog/includes/boxes

 

but that doesn't really fix the problem, because if a customer goes to the shopping cart to check the contents / total they will see the incorrect total.

 

Even stranger (or maybe not) if you add to cart a product with attribute 1 then the price will be correct in the cart total!

 

Any ideas - or do I get to keep this thread all to myself??

Link to comment
Share on other sites

I am no help, but am following the thread because my needs are similar. I need to adjust prices based on percentage. I saw this "tweak". It is way over my head to even think about trying to mess with it. It may help you though...

 

http://www.oscommerce.com/community/contributions,721

 

Sounds like it does what you want. Look forward to seeing your successful posting.

 

 

Good luck

 

Jason

Link to comment
Share on other sites

Thanks Jason

It looks good and would probably be a lot easier that the route I have taken, although AAP is working fine apart from the minor problem with the display of the cart total.

 

Anyhow I think I am too far in with my setting up of AAP to be able to remove and try this one.

 

Thanks for posting - I was beginning to despair that no-one cared :unsure:

 

David

 

........... just thinking - I might give it a go, will let you know if I do ;)

Link to comment
Share on other sites

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...