Forums / All Other Contributions/Addons / Twitch Wholesale with Twitch Wholesale Attributes

Twitch Wholesale with Twitch Wholesale Attributes

Views: 27,872

Results 61 to 80 of 164
14 Mar 2015, 1:28 AM
#61
luke_galyan avatar

luke_galyan

New Zenner

Join Date:
Jun 2014
Location:
Las Vegas, Nevada, United States
Posts:
47
Plugin Contributions:
0

Twitch Wholesale with Twitch Wholesale Attributes

Ok still confused on install. I looked at the files supplied and the changes noted in what I thought was the instructions have been made in those files already. This is looking more like a change log kind of thing rather than instructions.

But there are also sql database updates to make. That is something I assume I need to do manually.

It appears I will just be moving the files over to my store? Then do the SQL updates? Is there a complied list of SQL updates to be made so I do not need to go through that entire text file trying to pick them out (afraid I would miss something)?

SO back to the request of a set of instructions that I need to do?

Sorry about the multiple posting.
I will hang out and wait patiently. :)
Luke

14 Mar 2015, 10:53 PM
#62
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Wholesale with Twitch Wholesale Attributes

Some answers... :)

Luke Galyan:

Ok I was trigger happy on the question. I saw the .txt file and opened it in notepad which made it look almost like code. I then opened it in another editor and I see it is actually instructions! Thanks

Another question though. What are all the pricing levels?
Wholesale I assume is the cost you would sell an item to your wholesale customers like a retailer that will resell your item.
-> Correct

Price Net I assume is the retail price and that which will be shown on the store page to retail customers when they purchase from my store.
-> Correct (This is stock zen product pricing unrelated to Twitch Wholesale)
Price Gross includes taxes? How does it know that when different states have different rates?
-> Correct (This is stock zen product pricing unrelated to Twitch Wholesale)

The prices I do not get are Base and List?
List price be greater than retail? Um why? And is the list price used on my site anywhere? It confuses me.
-> List price or MSRP - The suggested retail price or dealer price
-> If you'd like it turned off on your live site there are a few code changes to make, just ask.

Base price is?? I assume the cost I pay for the good myself? Some lower price I want people to see? or? and where is that used on the site.
-> Yes base price is the price YOU pay for the product. ONLY displays in admin. Setup for reporting and other useful store owner features.

Any enlightenment would be appreciated
Luke

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

14 Mar 2015, 11:12 PM
#63
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Wholesale with Twitch Wholesale Attributes

And more answers...

Luke Galyan:

Ok still confused on install. I looked at the files supplied and the changes noted in what I thought was the instructions have been made in those files already. This is looking more like a change log kind of thing rather than instructions.

But there are also sql database updates to make. That is something I assume I need to do manually.

It appears I will just be moving the files over to my store? Then do the SQL updates? Is there a complied list of SQL updates to be made so I do not need to go through that entire text file trying to pick them out (afraid I would miss something)?

SO back to the request of a set of instructions that I need to do?

Sorry about the multiple posting.
I will hang out and wait patiently. :)
Luke

Let me explain:
The .zip contains one .txt file with start to finish install instructions.

  • Let's say you just installed Zen Cart v1.54. It's setup and works on your server. This is a 'vanilla' install or 'stock' zen cart 1.54. If you now open the .txt and read and follow each line, you will install Twitch Base Cost, List Price, Wholesale Price and Wholesale Attributes. That includes installing SQL updates through your zen cart admin -> tools -> install SQL patches.

The files included in the admin and includes are the resulting 'updated' files as a result of the above install.

  • If you run a word search for 'SQL Update' in my instructions you will find all of the updates needed to run through the zen admin.

If you are starting with a new vanilla ZC 1.54
You could overwrite the admin and includes folders then upload them to your server.

OR
*
For existing sites with modules installed*
You can winmerge (or other file merging/comparison program) all of the files contained in the admin and includes folders.

Your questions are welcomed :)

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

15 Mar 2015, 8:01 PM
#64
luke_galyan avatar

luke_galyan

New Zenner

Join Date:
Jun 2014
Location:
Las Vegas, Nevada, United States
Posts:
47
Plugin Contributions:
0

Re: Twitch Wholesale with Twitch Wholesale Attributes

Thanks!
I just installed it but have not played with it just yet.
In the mean time a couple notes for you.

In your txt file for SQL updates I think you may have a typo?
Line 1171 reads
insert into configuration (configuration_title, configuration_key, configuration_value,
Shouldn't the command at the start be all caps like this?
INSERT INTO configuration (configuration_title, configuration_key, configuration_value,
I am not a SQL guy but only gather this from looking at your other updates in the same file.

Other note is mostly for those installing this plugin and checking their progress along the way.
If you install all the files and do what ever mods you need to get your stuff back to personalized again but do not install the SQL updates then check your store, you will find all seems to be there except there will be no customers or orders listed.
At first this scared me thinking I lost something along the way. Then I thought it might just be that the admin was now looking for things in the database that were not there. After installing the SQL updates all is good again. Just a note to maybe help someone not get freaked out. :)

Ok off to play with this a bit.
Thanks again
Luke

15 Mar 2015, 8:10 PM
#65
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Wholesale with Twitch Wholesale Attributes

Luke Galyan:

Thanks!
I just installed it but have not played with it just yet.
In the mean time a couple notes for you.

In your txt file for SQL updates I think you may have a typo?
Line 1171 reads
insert into configuration (configuration_title, configuration_key, configuration_value,
Shouldn't the command at the start be all caps like this?
INSERT INTO configuration (configuration_title, configuration_key, configuration_value,
I am not a SQL guy but only gather this from looking at your other updates in the same file.

Other note is mostly for those installing this plugin and checking their progress along the way.
If you install all the files and do what ever mods you need to get your stuff back to personalized again but do not install the SQL updates then check your store, you will find all seems to be there except there will be no customers or orders listed.
At first this scared me thinking I lost something along the way. Then I thought it might just be that the admin was now looking for things in the database that were not there. After installing the SQL updates all is good again. Just a note to maybe help someone not get freaked out. :)

Ok off to play with this a bit.
Thanks again
Luke

I've made the caps lock 'INSERT INTO' change to the instructions for the next release, there is no functional change, just looks.

You are correct, there are times when checking your progress as you are installing the module will result in error messages or unusual behaviour. It's important to stay on task make backups and follow the instructions start to finish.

Glad you've got it working.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

15 Mar 2015, 9:03 PM
#66
luke_galyan avatar

luke_galyan

New Zenner

Join Date:
Jun 2014
Location:
Las Vegas, Nevada, United States
Posts:
47
Plugin Contributions:
0

Re: Twitch Wholesale with Twitch Wholesale Attributes

I found the setting in admin to not show the list price on the product listing pages. What I can not find is a setting to not show the list price on the individual product pages. When I view the product page itself I still see the list price. Can I turn this off with a setting or does it require code? I do not mind the list price being in the system but prefer the customers just don't view it.

Also I was trying the SQL updates for prices someone mentioned a few posts back. I can not get these to work and the SQL update says it failed. I would like to populate all my list and wholesale prices to equal my current retail price. I will go adjust individual products from there. I have a lot of products that will not be offered at wholesale so I would like to make all things equal then go modify the items I will be wholesaling.

Another question
Is there a way to exclude specific items from showing to wholesale customers at all? There are some items I do not want to show up on the wholesale offerings at all.

Thanks Luke

15 Mar 2015, 9:36 PM
#67
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Wholesale with Twitch Wholesale Attributes

Luke Galyan:

I found the setting in admin to not show the list price on the product listing pages. What I can not find is a setting to not show the list price on the individual product pages. When I view the product page itself I still see the list price. Can I turn this off with a setting or does it require code? I do not mind the list price being in the system but prefer the customers just don't view it.

** includes/templates/YOUR_TEMPLATE/templates/tpl_product_info_display.php**
change this:
<span class="productsList_price">List Price: $<?php echo $products_list_price; ?></span>
to this:
<!--** <span class="productsList_price">List Price: $<?php **//** echo $products_list_price; ?></span> **-->

or remove the line entirely if you like.

Luke Galyan:

Also I was trying the SQL updates for prices someone mentioned a few posts back. I can not get these to work and the SQL update says it failed. I would like to populate all my list and wholesale prices to equal my current retail price. I will go adjust individual products from there. I have a lot of products that will not be offered at wholesale so I would like to make all things equal then go modify the items I will be wholesaling.

Are you attempting this in Zen Cart Admin -> Tools - Install SQL Patches?
or
using phpMYadmin to run the SQL script?

Luke Galyan:

Another question
Is there a way to exclude specific items from showing to wholesale customers at all? There are some items I do not want to show up on the wholesale offerings at all.

Thanks Luke

Yes, You'll want to install Twitch Restrict, also available in the plugins, and compatible out of the box with Twitch Wholesale + Attributes.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

15 Mar 2015, 9:52 PM
#68
luke_galyan avatar

luke_galyan

New Zenner

Join Date:
Jun 2014
Location:
Las Vegas, Nevada, United States
Posts:
47
Plugin Contributions:
0

Re: Twitch Wholesale with Twitch Wholesale Attributes

Thanks
tpl modified and works great. :)

I am trying to do the patches via the Tools>Install SQL Patches in my admin area.

I will look into Twitch Restrict after I get this plug in up and working well.

Luke

15 Mar 2015, 9:57 PM
#69
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Wholesale with Twitch Wholesale Attributes

Luke Galyan:

Thanks
tpl modified and works great. :)

I am trying to do the patches via the Tools>Install SQL Patches in my admin area.

I will look into Twitch Restrict after I get this plug in up and working well.

Luke

In order to make the SQL script I would need to know which tables, and columns you need to update, what you want to change and... that may be a conversation we can have via email/PM.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

16 Mar 2015, 12:48 AM
#70
luke_galyan avatar

luke_galyan

New Zenner

Join Date:
Jun 2014
Location:
Las Vegas, Nevada, United States
Posts:
47
Plugin Contributions:
0

Re: Twitch Wholesale with Twitch Wholesale Attributes

PM sent your way.

16 Mar 2015, 1:08 AM
#71
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Wholesale with Twitch Wholesale Attributes

Luke Galyan:

PM sent your way.

Lengthy one returned :)

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

16 Mar 2015, 2:10 AM
#72
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Wholesale with Twitch Wholesale Attributes

twitchtoo:

In order to make the SQL script I would need to know which tables, and columns you need to update, what you want to change and... that may be a conversation we can have via email/PM.
**
Luke Galyan** - This is the script that you can run in Admin -> Tools -> Install SQL Patches

SQL Update - Add all 'products_price' in products table to new 'products_price_w' (wholesale price) and new 'products_list_price' (list price/MSRP) also in the products table.

This is the SQL code you would use to copy all product prices INTO the wholesale price field

UPDATE products 
SET products_price_w = products_price 
WHERE products_id = products_id;

This is the SQL code you would use to copy all product prices INTO the list price field

UPDATE products 
SET products_list_price = products_price 
WHERE products_id = products_id;

Be sure to backup your database BEFORE you attempt to make SQL updates.

Let me know if that was what you were looking to do :)

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

16 Mar 2015, 6:03 AM
#73
luke_galyan avatar

luke_galyan

New Zenner

Join Date:
Jun 2014
Location:
Las Vegas, Nevada, United States
Posts:
47
Plugin Contributions:
0

Re: Twitch Wholesale with Twitch Wholesale Attributes

That is exactly what I need to do. Thanks!

So I played with it a little and seems to work quite well. ")

I have just installed Twitch Restrict and have a few issue. :(
I will find that support thread and post there.

Luke

22 Mar 2015, 2:01 PM
#74
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Wholesale with Twitch Wholesale Attributes

Important Bug Fix:

admin/includes/modules/copy_to_confirm.php

select line 60 - 62:
$db->Execute("insert into " . TABLE_PRODUCTS . "
(products_type, products_quantity, products_model, products_image,
products_price, products_price_w, products_base_cost, products_list_price, products_virtual, products_date_added, products_date_available,

replace with:
// Twitch bug correction March 22 2015 the below db query replaces data as an 'ordered list'. Query 'insert into' order must match 'values' order
$db->Execute("insert into " . TABLE_PRODUCTS . "
(products_type, products_quantity, products_model, products_image,
products_base_cost, products_price, products_price_w, products_list_price, products_virtual, products_date_added, products_date_available,

This resolves the issue with incorrect data placement when duplicating products.

I have included the fix in Twitch WS+Att 16b for 1.54 along with some minor changes to the instructions.

This fix applies to** all **previous versions of Twitch Wholesale.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

22 Mar 2015, 5:14 PM
#75
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Wholesale with Twitch Wholesale Attributes

Turn off free shipping for wholesale customers - Free Shipper Module - free_shipper.php filter:

includes/modules/shipping/freeshipper.php

replace line 27 with this:

// bof Twitch Free Shipping Wholesale Filter - Mar.22.2015 if customer belongs to wholesale do not show this shipping option
//        $this->enabled = ((MODULE_SHIPPING_FREESHIPPER_STATUS == 'True') ? true : false);
$this->enabled = ((MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') ? true : false);
if($_SESSION['customers_wholesale'] >= '1' && $this->enabled==true) // a wholesale customer
{
$this->enabled=false; // when true - turn this module off
}else{
$this->enabled=true; // when false - keep this module on
}
// eof Twitch Free Shipping Wholesale Filter - Mar.22.2015 if customer belongs to wholesale do not show this shipping option

**IMPORTANT NOTE: **Be sure to check and understand completely how this particular filter works for your regular products AND downloadable products as it will shut the free shipping option down entirely if you have a cart full of products with 'free shipping only' selected in admin product collect_info.php

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

22 Mar 2015, 5:18 PM
#76
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Wholesale with Twitch Wholesale Attributes

Turn off free shipping for wholesale customers when using Order Total Module in admin:

includes/modules/order_total/ot_shipping.php

add in line 35:

// bof Twitch Free Shipping - Order Total - Wholesale Filter - Mar.22.2015 if customer belongs to wholesale do not show this shipping option
if($_SESSION['customers_wholesale'] >= '1') // a wholesale customer
{
        $pass = false; // when false - turn this module off
}
// eof Twitch Free Shipping - Order Total - Wholesale Filter - Mar.22.2015 if customer belongs to wholesale do not show this shipping option

includes/modules/pages/pages/checkout_shipping/header_php.php

add in line 125:

// bof Twitch Free Shipping - Order Total - Wholesale Filter - Mar.22.2015 if customer belongs to wholesale do not show this shipping option
if($_SESSION['customers_wholesale'] >= '1') // a wholesale customer
{
        $pass = false; // when false - turn this module off
}
// eof Twitch Free Shipping - Order Total - Wholesale Filter - Mar.22.2015 if customer belongs to wholesale do not show this shipping option

This will prevent wholesale customers from receiving Free Shipping For Orders Over discounts.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

22 Mar 2015, 8:51 PM
#77
luke_galyan avatar

luke_galyan

New Zenner

Join Date:
Jun 2014
Location:
Las Vegas, Nevada, United States
Posts:
47
Plugin Contributions:
0

Re: Twitch Wholesale with Twitch Wholesale Attributes

The functionality for turning off free shipping for wholesale customers was something I needed.
The Twitch developer was kind enough to help me accomplish this!
I have free shipping set for orders over 50$ in my admin>modules>order total>ot_shiping.
I only want this offered to my retail customers and needed to switch it off for wholesale customers.

With the code above installed for
Turn off free shipping for wholesale customers when using Order Total Module in admin:
It does exactly what I needed.

The only thing to be aware of is that this only turns off free shipping as set by admin>modules>order total>ot_shiping. If you have free shipping set at the product level (per product) by setting the product detail page in your admin to "Yes, Always Free Shipping" then the wholesale customers will still have free shipping available if that product is in their cart. If you do not have any free shipping set down at the product level and only allow free shipping via the order total module, this little tweak is perfect. :)

Huge thank you to Twitchtoo for helping me with this and a couple other little things!
Awesome support and worth dropping a little something in the bucket for him.
Luke

22 Mar 2015, 11:27 PM
#78
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Wholesale with Twitch Wholesale Attributes

Luke Galyan:

The functionality for turning off free shipping for wholesale customers was something I needed.
The Twitch developer was kind enough to help me accomplish this!
I have free shipping set for orders over 50$ in my admin>modules>order total>ot_shiping.
I only want this offered to my retail customers and needed to switch it off for wholesale customers.

With the code above installed for
Turn off free shipping for wholesale customers when using Order Total Module in admin:
It does exactly what I needed.

The only thing to be aware of is that this only turns off free shipping as set by admin>modules>order total>ot_shiping. If you have free shipping set at the product level (per product) by setting the product detail page in your admin to "Yes, Always Free Shipping" then the wholesale customers will still have free shipping available if that product is in their cart. If you do not have any free shipping set down at the product level and only allow free shipping via the order total module, this little tweak is perfect. :)

Huge thank you to Twitchtoo for helping me with this and a couple other little things!
Awesome support and worth dropping a little something in the bucket for him.
Luke

**Many thanks :) **

Also thank you for testing each filter in great detail!

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

31 Mar 2015, 8:31 PM
#79
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Wholesale with Twitch Wholesale Attributes

UPDATE... Twitch Wholesale + Att 16b works out of the box with the most recent version of **COWOA 2.4 **both running on Zen Cart v1.54.

If you have already installed COWOA, please use the install instructions for TwitchWS to accomplish the merger successfully line by line.

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

31 Mar 2015, 11:01 PM
#80
twitchtoo avatar

twitchtoo

Totally Zenned

Join Date:
Apr 2007
Location:
Ontario, Canada
Posts:
1,733
Plugin Contributions:
14

Re: Twitch Wholesale with Twitch Wholesale Attributes

Turn **Wholesale NET 30 **payment module on for **wholesale customers only.

includes/modules/payment/thirty_days_to_pay.php
**
Replace line 23 with this:

// bof Twitch NET 30 Wholesale Filter - Mar.31.2015
//      $this->enabled = ((MODULE_PAYMENT_THIRTY_DAYS_TO_PAY_STATUS == 'True') ? true : false);
$this->enabled = ((MODULE_PAYMENT_THIRTY_DAYS_TO_PAY_STATUS == 'True') ? true : false);
if($_SESSION['customers_wholesale'] >= '1' && $this->enabled==true) // a wholesale customer
{
$this->enabled=true; // when true - turn this module on for wholesale
}else{
$this->enabled=false; // when false - keep this module off for retail
}
// eof Twitch NET 30 Wholesale Filter - Mar.31.2015

Make a note that - 'MODULE_PAYMENT_THIRTY_DAYS_TO_PAY_STATUS == 'True' - This T MUST be capitalized!

Twitch.
https://www.twitchtoo.com Do you work for free? Please donate.
June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian