Author Topic: I need to make base price visible to all shoppers  (Read 3234 times)

Wayne Farnworth

  • Beginner
  • *
  • Posts: 20
I need to make base price visible to all shoppers
« on: January 22, 2013, 19:29:41 pm »
Hello all,

I have just completed a VM2.0.10 store (Joomla 1.5.9). During the build I kept the store as registered users only.

Now I have enabled the store to everyone and realised that the base price is not viewable to the anonymous shopper group.

The store is in catalogue only mode.

I really want to have the base price viewable in the front end to everyone.

I have amended it so that the base price is the price per sq yard and then there is a calculation rule that calculates the price per sq metre - this is the final price.

(See attachment)

Before anyone shouts at me, I have searched the forum and I have seen the replies that say the base price is only visible to admins in the front end by design. It is a way to see profit margin etc.

However, there has to be a way to hack the code to change this default behaviour and allow anonymous users to see it also.

So can someone point me to the place in the code to amend this please?

Many thanks

Wayne

[attachment cleanup by admin]

Wayne Farnworth

  • Beginner
  • *
  • Posts: 20
Re: I need to make base price visible to all shoppers
« Reply #1 on: January 26, 2013, 10:06:28 am »
Bump
Anyone have any ideas for this please?
I have a finished shop/catalogue waiting to go live

Many thanks in advance

laurentkreps

  • Beginner
  • *
  • Posts: 11
Re: I need to make base price visible to all shoppers
« Reply #2 on: January 26, 2013, 14:00:27 pm »
Hello,

I'm a newbie so maybe I'm totally wrong;

Do you try, in the product edit page, to unselect the shopper group (where you do your price calculation) ?

If a remember correctly, in an earlier version of virtuemart, I had the same problem; I had to change direclty the database record (I had to write "Null") in the shopper_id field...

I'm not sure it's good, but you can try, in the #__virtuemart_product_price, for each "public" price (price for anonymous users) to replace the value of the virtuemart_shoppergroup_id field by "NULL"

Good luck

Wayne Farnworth

  • Beginner
  • *
  • Posts: 20
Re: I need to make base price visible to all shoppers
« Reply #3 on: January 26, 2013, 15:54:58 pm »
Laurent,

Thanks for taking the time to reply, much appreciated.

I have already checked that as I read it in another post. Everything is already set to null.

I think also that that is a fix for a fault, I don't think my scenario is a fault as such. I think the way it is not showing is by design, but I want to override it.

I am hoping that someone can tell me how to amend the VM2 code to allow anonymous shoppers to see the base price

Thanks again Laurent.

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27541
  • Always on vacation
    • Jenkin Hill Internet
Re: I need to make base price visible to all shoppers
« Reply #4 on: January 27, 2013, 13:38:40 pm »
Can you not use "Baseprice with Tax, but without discounts" for that? This price is shown to all.

See http://forum.virtuemart.net/index.php?topic=79799.0 
Kelvyn

Jenkin Hill Internet,
Lowestoft, Suffolk, UK

Unsolicited PMs/emails will be ignored.

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

Currently using VM 3.6.3.10163 on Joomla 3.9.12 PHP 7.0.33

Wayne Farnworth

  • Beginner
  • *
  • Posts: 20
Re: I need to make base price visible to all shoppers
« Reply #5 on: January 27, 2013, 19:59:47 pm »
Hello Kelvyn, thanks for the reply.

The trouble is I have already created all the products using the base price for £ per sq yd and final price as £ per sq metre

I don't want to have to go back and amend them all and anyway it works exactly as I want it to apart from the visibility in the front end to everyone issue.

So I would prefer it if you can tell me how to make the base price visible to all in the front end please?

Many thanks in advance

Wayne

Wayne Farnworth

  • Beginner
  • *
  • Posts: 20
Re: I need to make base price visible to all shoppers
« Reply #6 on: January 30, 2013, 10:45:26 am »
Hello again,

Is there anyone who can give me some assistance with this?

I really need to get this working ASAP

Many thanks in advance

Wayne




Wayne Farnworth

  • Beginner
  • *
  • Posts: 20
Re: I need to make base price visible to all shoppers
« Reply #7 on: February 07, 2013, 08:51:08 am »
I have to say that the standard of support on here is very disappointing. I have a store waiting to go live. I really need to amend the code to make the base price visible.
Surely someone from the vm team could spare a few minutes to type a post and point me in the right direction to do this?

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9139
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: I need to make base price visible to all shoppers
« Reply #8 on: February 11, 2013, 17:23:12 pm »
have you echoed out your price object to see what's available in your template - then work back from there?


print_r ($this->product->prices);


Array
(
    [costPrice] => 4.99000
    [basePrice] => 4.99
    [basePriceVariant] => 4.99
    [basePriceWithTax] => 0
    [discountedPriceWithoutTax] => 0
    [priceBeforeTax] => 4.99
    [salesPrice] => 4.99
    [taxAmount] => 0
    [salesPriceWithDiscount] => 0
    [salesPriceTemp] => 4.99
    [unitPrice] => 0
    [discountAmount] => 0
    [priceWithoutTax] => 4.99
    [variantModification] => 0
    [DBTax] => Array
        (
        )

    [Tax] => Array
        (
        )

    [VatTax] => Array
        (
        )

    [DATax] => Array
        (
        )

)
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Wayne Farnworth

  • Beginner
  • *
  • Posts: 20
Re: I need to make base price visible to all shoppers
« Reply #9 on: February 11, 2013, 17:37:53 pm »
Hello and thanks for taking the time to post a suggestion. Maybe the VirtueMart dev's could try it.

I haven't tried that, but what I have tried is Magento. So far so good and far superior to VirtueMart and the developers actually try to help you when you ask a question.

Thanks again for posting.

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 9139
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 3.4.2
Re: I need to make base price visible to all shoppers
« Reply #10 on: February 11, 2013, 17:41:32 pm »
 :D
GJC Web Design
VirtueMart and Joomla Developers - php developers http://www.gjcwebdesign.com
VM3 AusPost Shipping Plugin - e-go Shipping Plugin - VM3 Postcode Shipping Plugin - Radius Shipping Plugin - VM3 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
http://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation