Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Created way to add weight to attributes - Sorter and Copier v5.1a


Recommended Posts

Posted

I am no programmer so bear with me for those who need the weight function to work in "Sorter and Copier". You will need ver. 5.1(a) with the updated file catalog/admin/products_attributes.php

 

Now, retrieve the contribution, "add weight to product attribute", which can be found here.

 

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

 

The only thing you need from this contribution is the file catalog/includes/classes/shopping_cart.php

 

Make sure you HAVE altered your database tables per Linda's contrib. (Sorter and Cop...). No need to alter per the add weight to product... instructions.

 

Now do this...

 

Open up the prior mentioned shopping_cart.php and do a find and replace for this entry.

 

Find all instances of: options_values_weight

Change to: 'products_attributes_weight'

 

That is it...

 

It was much too cumbersome for me to use the add weight to... contribution since it required wading through hundreds of attributes in to original attribute manager script and change them one by one. Ughhhh... I already had Linda McGraths (early) version of Sorter and Copier installed but couldn't get the weight function to work even with an upgrade so I formulated this fix, and it works great!!!

 

Hope someone benefits as I did.

 

JP

Posted

This should actually read like this...

 

Find all instances of: options_values_weight

Change to: products_attributes_weight

 

(No single quotation marks).

 

JP

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