Forums / All Other Contributions/Addons / Stock For Product With Different Attributes (OLD)

Stock For Product With Different Attributes (OLD)

Locked

Started by dafonz on 30 Nov 2005, 8:52 PM · Views: 80,867

Results 21 to 40 of 273
This thread is locked. New replies are disabled.
9 Dec 2005, 1:44 PM
#21
dafonz avatar

dafonz

Banned

Join Date:
Jun 2004
Posts:
40
Plugin Contributions:
0

Stock For Product With Different Attributes (OLD)

audradh:

I have yet to add any modules to my cart. I am working through things as I come to them, but I have a lot to learn about webspace in general, including Zen Cart.

There are plenty of references throughout the forums to "backup before making major changes" and "test this thoroughly before going live."

How do y'all test something before going live? Once in business your website is live 24/7. So where does the testing happen?

Bet ya weren't expecting such a bare basics kinda question :)

The Newbie,
Audra
Have two seperate installs (one on local machine and one on live server)

10 Dec 2005, 1:25 AM
#22
yh0p2 avatar

yh0p2

New Zenner

Join Date:
Nov 2005
Posts:
4
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

My orders doesn't show!!! i got the money but it seems like I don't know what da heck they ordered...

10 Dec 2005, 1:40 AM
#23
yh0p2 avatar

yh0p2

New Zenner

Join Date:
Nov 2005
Posts:
4
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

I need some help..

I am using 1.2.5d, and i've installed this module correctly and I set up all my products and all, but it doesn't display what they ordered on the admin page.

Please help me ASAP. Thank you.

10 Dec 2005, 10:34 PM
#24
dafonz avatar

dafonz

Banned

Join Date:
Jun 2004
Posts:
40
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

This was never tested on 1.2.5d...

11 Dec 2005, 9:17 AM
#25
audradh avatar

audradh

Zen Follower

Join Date:
Oct 2005
Location:
Eastern US
Posts:
429
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

Anybody care to walk a newbie through their first module install as well as their first trip into MYSQL?

I have downloaded the module, read the read me file and poked around a bit.

So, the first step is to create the table. I have found my way into the database. The prefix on my tables is zen_, so I am good to go.

I have found the place to add a new table. I have figured out that the first line in the read me file is the table name and the subsequent lines are fields. The last line has me confused.

PRIMARY KEY ( stock_id )
)

What is the primary key?

I know, about as basic as it gets! One day I will understand all this :blink:

Audra

11 Dec 2005, 9:28 AM
#26
audradh avatar

audradh

Zen Follower

Join Date:
Oct 2005
Location:
Eastern US
Posts:
429
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

OK, I think I figured out the primary key. I have checked the radio button next to stock_id labeled primary. (I even read about primary keys on MYSQL.com although I must admit most of it was lost on me!)

Since I am here rambling I may as well describe the rest of the process as I see it. There must be another newbie out there as lost as I who will benefit!

After creating the table I now need to upload the files provided in the module to the appropriate folders on my server.

Hey, thanks for listening as I talked myself through this!

Audra

11 Dec 2005, 9:31 AM
#27
audradh avatar

audradh

Zen Follower

Join Date:
Oct 2005
Location:
Eastern US
Posts:
429
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

Sorry, I guess I do have one sticking point. What is the "Table Type?" I am assuming it is the default, "MyISAM." Is this correct?

Audra

11 Dec 2005, 9:39 AM
#28
audradh avatar

audradh

Zen Follower

Join Date:
Oct 2005
Location:
Eastern US
Posts:
429
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

Now I have a question about uploading the files. In

/ admin / includes / languages /

there is a file english.php to upload. Do I overwrite the existing file?

TIA,
Audra

11 Dec 2005, 10:30 AM
#29
audradh avatar

audradh

Zen Follower

Join Date:
Oct 2005
Location:
Eastern US
Posts:
429
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

a_berezin:

Better way -- create file admin/includes/boxes/extra_boxes/products_with_attributes_stock_catalog_dhtml.php
Has anyone tried this? I added the file and no new option showed up under catalog. However, I have no idea what I am doing! I copied the php file, pasted it into notepad, saved it as
products_with_attributes_stock_catalog_dhtml.php

then uploaded it to the specified place.

What did I do wrong?

Audra

11 Dec 2005, 10:57 AM
#30
masterblaster avatar

masterblaster

Totally Zenned

Join Date:
Aug 2004
Location:
Germany
Posts:
528
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

I just tested this contribution and looks good. But when ordering a variation out of stock, the cart never throws an error or warning message for the customer.

A quantity overview for the customer would be awesome as well. ::tup

11 Dec 2005, 11:07 AM
#31
audradh avatar

audradh

Zen Follower

Join Date:
Oct 2005
Location:
Eastern US
Posts:
429
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

I am testing it right now. It allows me to place the item in my shopping cart, but displays a message that the item is out of stock or not available in the quantity ordered. I have configured my cart to not allow checkout for out of stocks. This is working as well.

Audra

11 Dec 2005, 11:29 AM
#32
audradh avatar

audradh

Zen Follower

Join Date:
Oct 2005
Location:
Eastern US
Posts:
429
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

masterblaster:

when ordering a variation out of stock, the cart never throws an error or warning message for the customer.
Check your settings under Configuration->Stock perhaps?

11 Dec 2005, 11:31 AM
#33
audradh avatar

audradh

Zen Follower

Join Date:
Oct 2005
Location:
Eastern US
Posts:
429
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

audradh:

Has anyone tried this? I added the file and no new option showed up under catalog. However, I have no idea what I am doing! I copied the php file, pasted it into notepad, saved it as
products_with_attributes_stock_catalog_dhtml.php

then uploaded it to the specified place.

What did I do wrong?

Audra
Although I would like to know why the 1st version did not work I did get it working by using da'fonz' edit instead.

Audra

12 Dec 2005, 9:03 PM
#34
taflloyd avatar

taflloyd

New Zenner

Join Date:
Dec 2005
Posts:
24
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

Hello! Thanks for a great contibution! This is something i have been looking for!

I'm very new to zencart, and I don't know a thing about MySQL. I don't know what to do with this code:
[/CODE]
CREATE TABLE zen_products_with_attributes_stock (
stock_id INT NOT NULL AUTO_INCREMENT ,
products_id INT NOT NULL ,
stock_attributes VARCHAR( 255 ) NOT NULL ,
quantity INT NOT NULL ,
PRIMARY KEY ( stock_id )
) [CODE]

Shall i put it in the Admin -> Tools -> Install SQL Patches?

Hope somebody can help me! :blink:

Den ultimate Playboy Butikk:
6yShop.no

Hos 6yShop finner du Playboy smykker, Playboy piercinger og Playboy klær. Alle produktene er selvfølgelig Originale Playboy produkt.

13 Dec 2005, 4:14 AM
#35
mrtoner avatar

mrtoner

New Zenner

Join Date:
Nov 2005
Posts:
15
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

Hey, Taflloyd! The code in the Read Me is what you'll use as a MySQL query. Whatever the website interface you're using, you'll find the section that allows you to administer your site's databases and paste the code into the text field used for MySQL queries. For example, if you use cPanel to administer your website and phpMyAdmin to administer your databases, running the query will add a table to your database with the fields needed to use the module.

13 Dec 2005, 5:39 AM
#36
mrtoner avatar

mrtoner

New Zenner

Join Date:
Nov 2005
Posts:
15
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

a_berezin:

Yes! I use the digit prefix in filenames for that. ;)
How would I do that to put the menu item in position 2 of the Catalog menu instead of the end?

13 Dec 2005, 6:43 AM
#37
mrtoner avatar

mrtoner

New Zenner

Join Date:
Nov 2005
Posts:
15
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

Trying to use overrides with this module, per this thread.

Instead of replacing database_tables.php (which would get overwritten in a ZC upgrade), I'm placing the database define

<?php
 define('TABLE_PRODUCTS_WITH_ATTRIBUTES_STOCK', DB_PREFIX . 'products_with_attributes_stock');
?>

into /includes/extra_datafiles/products_with_attributes_stock_database_tables.php.

However, I'm getting the error 1146 Table 'cfus_zc1.TABLE_PRODUCTS_WITH_ATTRIBUTES_STOCK' doesn't exist when I use Admin. Any ideas why the /includes/extra_datafiles define isn't being called? When I copied the file to /admin/includes/extra_datafiles it did work.

13 Dec 2005, 6:56 AM
#38
mrtoner avatar

mrtoner

New Zenner

Join Date:
Nov 2005
Posts:
15
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

Rather prolific tonight, I am. What functions from functions_lookups.php do I need to put into an override file (which would go in /includes/functions/extra_functions)?

13 Dec 2005, 2:23 PM
#39
taflloyd avatar

taflloyd

New Zenner

Join Date:
Dec 2005
Posts:
24
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

mrtoner:

Hey, Taflloyd! The code in the Read Me is what you'll use as a MySQL query. Whatever the website interface you're using, you'll find the section that allows you to administer your site's databases and paste the code into the text field used for MySQL queries. For example, if you use cPanel to administer your website and phpMyAdmin to administer your databases, running the query will add a table to your database with the fields needed to use the module.
Hey!
Thanks for your answer!
I use phpMyAdmin, and I found the query window, and paste the code. Selected the database and hit "Go". Nothing happened... What am I doing wrong?

Den ultimate Playboy Butikk:
6yShop.no

Hos 6yShop finner du Playboy smykker, Playboy piercinger og Playboy klær. Alle produktene er selvfølgelig Originale Playboy produkt.

13 Dec 2005, 4:36 PM
#40
mrtoner avatar

mrtoner

New Zenner

Join Date:
Nov 2005
Posts:
15
Plugin Contributions:
0

Re: Stock For Product With Different Attributes (OLD)

Taflloyd:

I use phpMyAdmin, and I found the query window, and paste the code. Selected the database and hit "Go". Nothing happened... What am I doing wrong?
If you're using phpMyAdmin, in my experience you need to 1) select the database, 2) click the SQL tab, 3) paste the query into the "Run SQL query/queries on database yyy" field, and 4) click "Go." If I'm reading your post correctly, you did two of those steps out of order. (I'm using phpMyAdmin 2.6.4-pl2.)