price not showing in virtuemart cart

October 2012 Joomla Template
Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Sep 10, 2013 6:07 pm
Reply with quote
Report this post
Hi I have searched everywhere but not found a solution. In my cart I am getting everything except the 'price', tax and total are showing correct though. I am using Storebox template with virtuemart 2.0.22c site is here for you to look at http://www.jpsprinting.co.uk/store/aug2013.
I have found in a few places that it may be the template overrides but I don't know what this is or how to fix.
Any help would be much appreciated. Thank You
User avatar
Junior Boarder

teitbite
Wed Sep 11, 2013 2:40 pm
Reply with quote
Report this post
Hi

First of all please select a default template in vm settings. There is a small bug in vm which can be fixed this way.

If this will not help take a closer look for shopper groups attached to product and see if a regular not registered user has right to see prices.
User avatar
Moderator

GK User
Thu Sep 12, 2013 8:33 pm
Reply with quote
Report this post
I have tried all default templates like Beez2, Beez5 and Atomic and the price doesn't show up in these either. I also checked the shopper groups under product information in virtuemart and it says Available for all. It also says available for all under product pricing.
User avatar
Junior Boarder

teitbite
Fri Sep 13, 2013 3:38 am
Reply with quote
Report this post
Hi

If problem is visible even when using a different template than it's a VM related only. But before asking on VM foum please send me an access to joomla panel so I'll try to figure out the solution.
User avatar
Moderator

GK User
Sat Sep 14, 2013 7:45 pm
Reply with quote
Report this post
teitbite wrote:Hi

If problem is visible even when using a different template than it's a VM related only. But before asking on VM foum please send me an access to joomla panel so I'll try to figure out the solution.

I have emailed you details
Thank You
User avatar
Junior Boarder

teitbite
Tue Sep 17, 2013 3:29 am
Reply with quote
Report this post
Hi

I could not found a misconfiguration issues. Please send ma an access to ftp so I'll see if there is no issue in code.
User avatar
Moderator

GK User
Tue Sep 17, 2013 5:47 pm
Reply with quote
Report this post
teitbite wrote:Hi

I could not found a misconfiguration issues. Please send ma an access to ftp so I'll see if there is no issue in code.


FTP etails emailed to you - Thank You
User avatar
Junior Boarder

teitbite
Tue Sep 17, 2013 11:29 pm
Reply with quote
Report this post
Hi

Are You using any additional plugins pontificating prices ? An FTP file is ok, but the method of storing prices is completely different. Normally to access price You need to use:

Code: Select all
$product->price['salesPrice'];


but when I make a dump of product informations provided by VM I can see:

Code: Select all
$product->price


This is odd, because in such case a VM function adding a currency or discount will not work.

I can overwrite it to use the new product structure, but I think it may not be safe, because problems may appear in different places (invoices for example). So please let me know if there are any non-standard VM plugins used.
User avatar
Moderator

GK User
Wed Sep 18, 2013 9:15 pm
Reply with quote
Report this post
Hi there are no non-standard VM plugins installed. I tried to install tcpdf as VM gave a message to install it for invoice creation but it wouldn't install as far as I know it was just taking ages so I cancelled it. Maybe this has something to do with it? I would appreciate it if you could try and make the change and see what happens. I assume if there are problems it can just be put back to what it was.
User avatar
Junior Boarder

teitbite
Fri Sep 20, 2013 3:41 am
Reply with quote
Report this post
Hi

tcpdf is a part of joomla installation so this is why it took so long to install :)

I was just going to make this change in access to prices, but looks like there is a problem with Your site. All I can see is "Error 500". Can You please fix it so I'll be able to work on code ?
User avatar
Moderator

GK User
Fri Sep 20, 2013 1:42 pm
Reply with quote
Report this post
teitbite wrote:Hi

tcpdf is a part of joomla installation so this is why it took so long to install :)

I was just going to make this change in access to prices, but looks like there is a problem with Your site. All I can see is "Error 500". Can You please fix it so I'll be able to work on code ?

Sorry about that! should be fixed now. Thanks
User avatar
Junior Boarder

teitbite
Sat Sep 21, 2013 4:19 pm
Reply with quote
Report this post
Hi

While trying to overwrite the code, I've noticed a strange thing.

I've added this product to cart "500x Business Cards", now cart is showing a total price of £48.00 (£8.00 tax), but when I'm looking for a right price format all I can see is a price of £30.00. So where is £10.00 ??? I'm afraid this is much more complicated than I thought and someone from VM should look into it.

Anyway I've replace the code so now price is visible, but as I've mentioned it's the price attached to the product.

Code: Select all
      echo $this->currencyDisplay->createPriceDiv ('', '', $prow->product_price);
User avatar
Moderator

GK User
Tue Sep 24, 2013 12:17 pm
Reply with quote
Report this post
teitbite wrote:Hi

While trying to overwrite the code, I've noticed a strange thing.

I've added this product to cart "500x Business Cards", now cart is showing a total price of £48.00 (£8.00 tax), but when I'm looking for a right price format all I can see is a price of £30.00. So where is £10.00 ??? I'm afraid this is much more complicated than I thought and someone from VM should look into it.

Anyway I've replace the code so now price is visible, but as I've mentioned it's the price attached to the product.

Code: Select all
      echo $this->currencyDisplay->createPriceDiv ('', '', $prow->product_price);


Thank you for that, it looks like everything is working fine, the extra £10 was due to a custom field which I left on by mistake (it was to add laminating) but I have removed it and it looks ok now. Not had too much time to check thoroughly but from a quick look it looks ok. Thank you so much for your help and sorry for the confusion.
User avatar
Junior Boarder

teitbite
Sat Sep 28, 2013 1:06 am
Reply with quote
Report this post
Hi

Great to hear that. I was concerned by this extra 10 in price, but if You know why is it showing than everything should be ok.
User avatar
Moderator


cron