Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Group Pricing Display when Logged In

Started by cartagan, March 07, 2025, 02:24:05 PM

Previous topic - Next topic

cartagan

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?

abolabo

discounted price is a special price.
See this link for details
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

cartagan


cartagan

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!

abolabo

Quote from: 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!
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
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

cartagan

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.

abolabo

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.
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens

cartagan

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!

abolabo

Quote from: 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!
https://github.com/abantecart/abantecart-src/blob/master/public_html/storefront/model/catalog/product.php#L1560
"No one is useless in this world who lightens the burdens of another."
― Charles Dickens


cartagan

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.

Forum Rules Code of conduct
AbanteCart.com 2010 -