AbanteCart Community

eCommerce construction => General Discussion => Topic started by: cartagan on March 07, 2025, 02:24:05 PM

Title: Group Pricing Display when Logged In
Post by: cartagan on March 07, 2025, 02:24:05 PM
Is there any way to display the correct group discounted pricing while logged in (other than using special) on the category pages and not just the product details page?
Title: Re: Group Pricing Display when Logged In
Post by: abolabo on March 11, 2025, 05:04:09 AM
discounted price is a special price.
See this link (https://abantecart.atlassian.net/wiki/spaces/AD/pages/5275730/Products+Specials) for details
Title: Re: Group Pricing Display when Logged In
Post by: cartagan on March 11, 2025, 07:52:03 AM
Bummer. Thanks for responding.
Title: Re: Group Pricing Display when Logged In
Post by: cartagan on April 14, 2025, 09:42:40 AM
Coming back around to this again.

Could someone please point out what part of product_listing.tpl would need to be edited to get the correct group discount pricing to display on both the category page and the product page?

I know that I could make the price a special instead of a discount but that automatically puts them on the Specials page and shows the "Sale" text which I don't want.

Thanks!
Title: Re: Group Pricing Display when Logged In
Post by: abolabo on April 14, 2025, 11:37:12 AM
Coming back around to this again.

Could someone please point out what part of product_listing.tpl would need to be edited to get the correct group discount pricing to display on both the category page and the product page?

I know that I could make the price a special instead of a discount but that automatically puts them on the Specials page and shows the "Sale" text which I don't want.

Thanks!
You should no to edit tpl file in this case.
Is question only in Specials page?
What if remove links on it and use Featured block instead?
If you have a special price of product for group it's a "special". When you wish to show special product but say it's not a special product it sounds wierd
Title: Re: Group Pricing Display when Logged In
Post by: cartagan on April 14, 2025, 11:42:53 AM
Normally I would try not to edit the .tpl files but the cart does not have the feature I want by default. I have 2 stores with different price levels. Both stores show Retail pricing when not logged in but I want to display the "discount" price from the Promotions section when logged into the "Dealer" version of the store. I know that can be done with "special" but that adds other things that I don't want.
Title: Re: Group Pricing Display when Logged In
Post by: abolabo on April 14, 2025, 11:51:30 AM
If you have two stores you should to have two variants of the same products with different prices.
See product form->stores. Chose only one.
Title: Re: Group Pricing Display when Logged In
Post by: cartagan on April 14, 2025, 11:57:07 AM
I would have to create thousands of products twice. I would rather edit a few lines of code and have it do what I want. I just don't know which lines of code control the price display while logged in.

I do appreciate you taking time to answer though. Thanks!
Title: Re: Group Pricing Display when Logged In
Post by: abolabo on April 14, 2025, 12:16:59 PM
I would have to create thousands of products twice. I would rather edit a few lines of code and have it do what I want. I just don't know which lines of code control the price display while logged in.

I do appreciate you taking time to answer though. Thanks!
https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/model/catalog/product.php#L1560
Title: Re: Group Pricing Display when Logged In
Post by: cartagan on April 16, 2025, 09:05:04 AM
Thanks for that!
Title: Re: Group Pricing Display when Logged In
Post by: cartagan on April 29, 2025, 11:17:45 AM
Just an update for those that had a similar issue. You cannot have a quantity of "0" for the promotion or the correct price will not show. Once I set the quantity to "1", the correct prices showed.

Thanks again abolabo for trying to help.