Show price is free problem.

  • Posts: 11
  • Thank you received: 0
9 years 11 months ago #155300

Product was created by vendor is alway show price is "free".

Until administrator go to joomla administrator open that product and save it again. then price is change from free to real price.

Are this is bug? or I'm missing something.

Please Log in or Create an account to join the conversation.

  • Posts: 26014
  • Thank you received: 4004
  • MODERATOR
9 years 11 months ago #155301

Hi,

Like that, I will need more details about your website, the version of the components, your configuration, the vendor ACL, etc.
I will have to reproduce your problem in order to fix it, and in my tests websites it is working good (and for other HikaMarket users). So I think you have a particular configuration that I need to reproduce.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
9 years 11 months ago #155359

Hi Jerome,

I second that, same problem here. Except, not a big problem if one at all, because in my project every item posted by a vendor will need to be reviewed by the admin before publishing, anyway.
I only stumbled over it on the way to a workaround, and searching led me here, but that's a different story and doesn't matter here and now.

So, my setup:

  • HikaShop Business 2.3.0, Build May 5
  • HikaMarket 1.4.0, Build yesterday
  • Joomla 3.3, PHP 5.3.27, MySQLi under MAMP, and all that good stuff that otherwise works
  • Vendor ACL, registration and categories see attached screenshots
  • I've tried with vendors in any possible registration mode, and before and after they had sold something (meaning before and after they've been force-moved into a different user group) - doesn't matter, problem persists.
  • Prices = no taxes anywhere, no MSRP, nothing. Just one 'no tax' price, in all listings and product pages 'show no tax and cheapest'.
  • Only one currency published (USD), others displayed, but irrelevant for this problem.
  • All required fields product fields are chosen/entered by vendor, it saves without protest. Accessible product parameters may be altered either way, no dependencies.
  • Anything else you need to know?

As indicated and the OP said, vendor (= me with vendor status and credentials) adds a product, publishes it, and it pops up as "free" in the frontend - but only if vendor publishes. As soon as admin opens and saves it in the backend it's all good, price shows. Also, if admin/main vendor posts a product directly and saves as published, all ok.

Your turn, I guess. ;)
Just let me know if any info is missing.
Thanks!


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Attachments:
Last edit: 9 years 11 months ago by lousyfool.
The following user(s) said Thank You: apatiu

Please Log in or Create an account to join the conversation.

  • Posts: 11
  • Thank you received: 0
9 years 11 months ago #155364

yes my problem is the same like lousyfool.

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
9 years 11 months ago #155365

Hi Jerome,

FWIW, and because I was just playing with it again for a different reason, but I can firmly state:

For as long as vendor is toying with the product he posted, published/unpublished, changing all sorts of product fields like quantity, price, name, extra fields... it does not matter at all, the price is "Free".

If admin opens the product in the backend and cancels without saving, you guess it - correct, no change, still free. As soon as admin saves it in the backend, no change or anything, just save - boom, there's the price in the frontend.

So it happens with all default = virgin vendor product form, listing, and toolbar PHPs. You should definitely be able to reproduce this, me thinks.

Good luck!


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

Please Log in or Create an account to join the conversation.

  • Posts: 26014
  • Thank you received: 4004
  • MODERATOR
9 years 11 months ago #155385

Hi,

For the ACL "product / edit / price", what elements are checked/unchecked ?

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
9 years 11 months ago #155388

Ooops, sorry Jerome, somehow overlooked to unfold that section...

Please see attached, it's only the value. Without tax, with only one currency published, with no price depending on quantity, and with no one to fuss with the price ACL, I don't see any good reason for another check there.

Hope it helps.


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26014
  • Thank you received: 4004
  • MODERATOR
9 years 11 months ago #155391

Hi,

I think I finally got the configuration.
The "product / edit / price / currency" is unchecked and the currency isn't forced.
With a product template it avoid the problem but without, the currency id is "0" so HikaShop does not appreciate it.

In the file "administrator/components/com_hikamarket/classes/product.php" please replace

if($acls['currency'] && isset($value['price_currency_id']))
	$product->prices[$k]->price_currency_id = (int)$value['price_currency_id'];
By:
if($acls['currency'] && isset($value['price_currency_id']))
	$product->prices[$k]->price_currency_id = (int)$value['price_currency_id'];
if(empty($product->prices[$k]->price_currency_id))
	$product->prices[$k]->price_currency_id = $shopConfig->get('main_currency',1);
It will force the main currency if there is no currency while saving a product price.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: lousyfool

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
9 years 11 months ago #155395

Well Jerome,

"...the ... currency isn't forced." Don't know what you call 'forced', but again, I have only one currency published, so the vendor has no other choice to pick from, and this is what it looks like in my market product form:



Not sure what isn't 'forced' there, lol!
Anyway, I'll try the mod in a bit, just gotta finish something else first. I shall faithfully report asap!


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 2143
  • Thank you received: 747
9 years 11 months ago #155396

Hmmmmm...

  1. I couldn't wait, so - $#@%^()(&^ - got right on it...
  2. You won't get that code snippet back, ha.
  3. Jerome for president!

Yup, that works! But only for newly entered product - after the snippet was applied. Previously "priceless" product is still free (but that's only one test thingy, anyway).

There you go. Jerome's got the force! B) Keep it coming!

Thank you!


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

Please Log in or Create an account to join the conversation.

Moderators: Obsidev
Time to create page: 0.091 seconds
Powered by Kunena Forum