Jump to content

Recommended Posts

Posted (edited)

Make sure to uninstall the core modules and not to use both modules (original core and modified wholesale) on the index page.

Then you could try to use the core module only and change the product_listing.php module call to product_listing_ws.php. This is the only difference in the index product listing module.

      ob_start();
      include('includes/modules/product_listing_ws.php');
      $output .= ob_get_clean();

Then you could change manually the different code into the core product_listing.php.
The only difference are the lines for the product price which are commented with // wholesale (SPPC) lite

      if (PRODUCT_LIST_PRICE > 0) {
        // wholesale (SPPC Lite) BEGIN
        if ( tep_session_is_registered('customer_id') && defined('MODULE_STORE_WHOLESALE_STATUS') && MODULE_STORE_WHOLESALE_STATUS == 'True' && isset($wholesale_group) && $wholesale_group > '0' ) {
        	if (tep_not_null($listing['specials_new_products_price'])) {
        		$prod_list_contents .= '      <div class="col-xs-6"><div class="btn-group" role="group"><button type="button" class="btn btn-default"><del>' .  $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</del>&nbsp;&nbsp;<span class="productSpecialPrice">' . wholesale_price($listing['products_id']) . '</button></div></div>';
        	} else {
        		$prod_list_contents .= '      <div class="col-xs-6"><div class="btn-group" role="group"><button type="button" class="btn btn-default">' . wholesale_price($listing['products_id']) . '</button></div></div>';
        	}
        } else {
        	if (tep_not_null($listing['specials_new_products_price'])) {
        		$prod_list_contents .= '      <div class="col-xs-6" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><meta itemprop="priceCurrency" content="' . tep_output_string($currency) . '" /><div class="btn-group" role="group"><button type="button" class="btn btn-default"><del>' .  $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</del>&nbsp;&nbsp;<span class="productSpecialPrice" itemprop="price" content="' . $currencies->display_raw($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '">' . $currencies->display_price($listing['specials_new_products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span></button></div></div>';
        	} else {
        		$prod_list_contents .= '      <div class="col-xs-6" itemprop="offers" itemscope itemtype="http://schema.org/Offer"><meta itemprop="priceCurrency" content="' . tep_output_string($currency) . '" /><div class="btn-group" role="group"><button type="button" class="btn btn-default"><span itemprop="price" content="' . $currencies->display_raw($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '">' . $currencies->display_price($listing['products_price'], tep_get_tax_rate($listing['products_tax_class_id'])) . '</span></button></div></div>';
        	}
        }
        // wholesale (SPPC Lite) BEGIN
      }

There is no other difference, so I would say css can't be an issue, these lines are not related to grid/list view changes.

Edited by raiwa

Share this post


Link to post
Share on other sites

hey @raiwa many thanks, I got it working by adding the code to the default product_listing file. Thanks again for taking the time to help. Will buy you a pint... 


Ah, the world wide web. What a wonderful place.

Share this post


Link to post
Share on other sites
16 minutes ago, freakystreak said:

hey @raiwa many thanks, I got it working by adding the code to the default product_listing file. Thanks again for taking the time to help. Will buy you a pint... 

Thanks, please try with ONLY the wholesale products listing module installed. Having both, core AND wholesale module installed, breaks the code.

Share this post


Link to post
Share on other sites

@raiwa having bought your pro version earlier today I have just tried to upgrade from Version 3.0.3 Lite to Version 3.2 PRO. I've searched through your 'Update' document supplied but nowhere in that does it say how to update from Lite to PRO. Plenty of instructions to upgrade a PRO version, do I follow upgrading from 3.0.3 to 3.2? Is that the right way of doing it? Am I missing something? If I am or misread then I'm deeply sorry. Also, how many wholesale groups can you have? Is there a limit? Thanks.


Ah, the world wide web. What a wonderful place.

Share this post


Link to post
Share on other sites

Uploaded update:

Wholesale (SPPC lite) 4.0.1.

-    Added missing modified file advanced_search_result.php. Thanks to @Portman


Compatibility: Phoenix 1.0.1.x PHP 7.0-7.3
-------------------------------------------------------------------------------------------------------------
CE FROZEN please use Wholesale (SPPC Lite) 3.0.4
Older 2.3.4.(1.) versions please use Wholesale (SPPC Lite) 2.0

Share this post


Link to post
Share on other sites

Thanks for update

I have a question.

in includes/modules/product_listing_ws.php you specified schema example itemscope itemtype="https://schema.org/Offer

With Phoenix there is a header tags module breadrumb and product JSON-LD that already does this.

Is the schema still needed in product_listing_ws?


Getting the Phoenix off the ground

Share this post


Link to post
Share on other sites
3 hours ago, Peper said:

Thanks for update

I have a question.

in includes/modules/product_listing_ws.php you specified schema example itemscope itemtype="https://schema.org/Offer

With Phoenix there is a header tags module breadrumb and product JSON-LD that already does this.

Is the schema still needed in product_listing_ws?

Hello Pepper,

As stated in the instructions of wholesale 4.0.1., the supplied files are compatible and based on Phoenix 1.0.1.x-

The product listings have been modified for 1.0.2.x (I don't remember the exact point version) and you'll need to apply the modifications in the supplied files comparing with the core files for your Phonix version for 100% compatibility. I'll update as soon as I find some time.

rgds
Rainer

Edited by raiwa

Share this post


Link to post
Share on other sites
9 hours ago, Heatherbell said:

Sorry to bother but just upgraded to phoenix 1.0.3.0.
Trying to apply wholesale (SPPC Lite) changes to new 1.0.3.0 admin/categories.php - no success.
Any advice is greatly appreciated.

There are some minor adaptations required:

- all database table name constants need to be replaced with the "real" database table names
- point 3e is not required any more due to placeholders are used now to retrieve all database table entries
- point 3h needs some style modifications to fit modified html
- point 3i just add "updateGrossWS();" under "updateGross();"

As I applied already the modifications in my develop store, here the modified 1.0.3.0 file:

categories.php

I'll update the Wholesale lite addon soon to fit Phoenix 1.0.3.0 and all admin/categories.php modifications will be hooked.

 

Share this post


Link to post
Share on other sites

Uploaded update:

Wholesale (SPPC lite) 4.1.0.

Changes:
- Update for Phoenix 1.0.3.x, hooked admin/categories.php. Thanks to @heatherbell for testing

Compatibility:
Phoenix 1.0.3.x

PHP 7.0-7.3

-------------------------------------------------------------------------------------------------------------
Older Phoenix 1.0.1.0 - 1.0.2.x versions please use Wholesale (SPPC lite) 4.0.1.
Older 2.3.4.(1.) responsive BS versions please use Wholesale (SPPC Lite) 3.0.4
Older 2.3.4.(1.) versions please use Wholesale (SPPC Lite) 2.0

-------------------------------------------------------------------------------------------------------------------------------

Edited by raiwa

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×