Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
potteryhouse
In the file attributes.php make these changes. This should resolve your display error.
On line 199 change this:
Code:
$products_options_display_price = ATTRIBUTES_PRICE_DELIMITER_PREFIX . '<span class="productSpecialPrice">' . $products_options->fields['price_prefix'] . $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . '</span>' . ATTRIBUTES_PRICE_DELIMITER_SUFFIX;
To this:
Code:
$products_options_display_price = ATTRIBUTES_PRICE_DELIMITER_PREFIX . $products_options->fields['price_prefix'] . $currencies->display_price($new_attributes_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX;
On line 224 change this:
Code:
$originalpricedisplaytext = ATTRIBUTES_PRICE_DELIMITER_PREFIX . '<span class="normalprice">' . $products_options->fields['price_prefix'] . $currencies->display_price( zen_get_attributes_price_final($products_options->fields["products_attributes_id"], 1, '', 'false'), zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . '</span>' . ATTRIBUTES_PRICE_DELIMITER_SUFFIX;
To this:
Code:
$originalpricedisplaytext = ATTRIBUTES_PRICE_DELIMITER_PREFIX . $products_options->fields['price_prefix'] . $currencies->display_price( zen_get_attributes_price_final($products_options->fields["products_attributes_id"], 1, '', 'false'), zen_get_tax_rate($product_info->fields['products_tax_class_id'])) . ATTRIBUTES_PRICE_DELIMITER_SUFFIX;
I made these changes and the product will simply not display at all now :-( Any ideas?
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
Philman1008
I made these changes and the product will simply not display at all now :-( Any ideas?
Try the test version I posted above (post #1762). It should resolve that issue, I made changes to adjust for the selection drop-down lists problems.
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Can you disable a Attribute Option type from being port of SBA? For example you have Attribute Option type "Read Only". I want to make a attribute called Gift Wrap and put in values "Yes" and "No". Can I tell SBA if the attribute option type is "Read Only" then do not add it to part of the "Products with Attribute Stock". Right now if I have 10 "xs" 'blue" shirts for me to use Gift Wrap I would have to have 10 xs blue shirts with "Gift Wrap" marked "Yes" and 10 xs blue shirts with "Gift Wrap" marked "No".
Thanks
Brad
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5+
Quote:
Originally Posted by
bradlawson25
Can you disable a Attribute Option type from being port of SBA? For example you have Attribute Option type "Read Only". I want to make a attribute called Gift Wrap and put in values "Yes" and "No". Can I tell SBA if the attribute option type is "Read Only" then do not add it to part of the "Products with Attribute Stock". Right now if I have 10 "xs" 'blue" shirts for me to use Gift Wrap I would have to have 10 xs blue shirts with "Gift Wrap" marked "Yes" and 10 xs blue shirts with "Gift Wrap" marked "No".
Thanks
Brad
Hi,
Setting a selection as read-only and trying to add to the cart will not work as you want. But, you can turn off the QTY, and other tests for stock in the "Configuration > Stock" page and add the yes/no as another selection on the product. You will then have to add the new selection in the stock page and place a large value in it.
While thinking about your problem, I looked at a change to the mod last night that may resolve your issue and provide more flexibility in this mod for the future, but it will take a few days to get the updates done. When I finish I will post it here as a new version for testing. Please provide feedback on it so I know if this approach is useful.
This is the basic concept I am using for the new change I am making:
Add another selection type for use when making "Attribute Names" the new type will be set to generic / general, and will not have any of the added text the other types get for display on the Product page or in the shopping cart and will not be tracked for stock.
The main use I see for this will be for Selections that do not need or have an associated quantity, such as a Yes / No selection, or when a color, or size selection that is not tied to an available quantity (qty independent). In these cases the selection will not need to be in the Stock page since no stock will be tracked against these new types.
The goal is to keep existing functionality while expanding available options. This change will affect several files, as a minimum it touches the attributes.php, product info, and shopping cart checkout pages. It also will require running an sql file to add the new options to the database.
Re: SBA Test version 1.5.X
I have a question about upgrading a store from 1.39h to 1.5x versions of Zencart.
What does stock by attributes do in this case? will it stop working?
I think the new versions of zencart have a stock system built in? Can I import the stock levels either to zencarts new system or to a different version of SBA that works with 1.5x?
I did search this thread for this info but didnt get far..
Re: SBA Test version 1.5.X
Quote:
Originally Posted by
Chargin
I have a question about upgrading a store from 1.39h to 1.5x versions of Zencart.
What does stock by attributes do in this case? will it stop working?
You will have to update the files of SBA with the most current, the previous version will not work correctly with Zen Cart 1.5.1.
I think the new versions of zencart have a stock system built in? Can I import the stock levels either to zencarts new system or to a different version of SBA that works with 1.5x?
The version of SBA in Zen Cart 1.5.1 is similar to the 1.3.9 version, if you want the attribute stock you will still need the SBA mod installed.
Your current SBA table will be upgraded if you use the script. BUT, test this on a TEST setup prior to doing the upgrade and BACKUP EVERYTHING before you start.
I did search this thread for this info but didnt get far..
Once you have upgraded your site to 1.5.1, than update the SBA files with the current available from the Plug-ins. The setup script in SBA will update your current SBA table. Please read all instructions before starting, and make Backups that you can revert to if you have problems. Instructions are provided with the Plug-in download, if you have suggestions to make them better please post them here and we will try to add your suggestions to future releases.
Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9
That is great news thanks for taking the time.
Re: Stock by Attribute v4.0 addon for v1.3.5-1.3.9
Something strange is happening and I cannot find the answer in any of my searches. Have been building a new Zen Cart (v1.5.1) site using Stock by Attributes (the new version by potteryhouse). Everything was working fine, but shortly after moving the site to the actual server the Products with Attributes Stock isn't working. When I click on the menu option under Catelog I get the list of the products with attributes and I can click "Add Quantity For Product Variant" or "Edit Quantity" and see the product attribute (size), but when I make any change and click "Submit" I immediately get an error page "The connection was reset. The connection to the server was reset while the page was loading."
I don't think this is connected to moving to the new server because someone has been able to add some inventory numbers since the move.
Any ideas. I'm rather desperate. Really need to get this site up and running. The site is at www.cocoroots.com/cart
Thanks,
Greg
Re: Stock by Attribute v4.0 for Zen Cart 1.3.5
SBA is coming up with the following error when attempting to update quantities via 'Edit Quantity':
"No data received
Unable to load the webpage because the server sent no data.
Reload this webpage.
Press the reload button to resubmit the data needed to load the page.
Error code: ERR_EMPTY_RESPONSE"
Any ideas? It is able to update quantities on the main screen by directly inputting the number, but this is not working for my new stock!
Urgently need to get this sorted in order to get stuff sold by Christmas...!
Huge thanks, people!