Author Topic: Product prices not updating in Category View  (Read 900 times)

cjsmiff

  • Beginner
  • *
  • Posts: 19
  • A beginner
Product prices not updating in Category View
« on: March 07, 2019, 22:47:17 pm »
Hi,

I have a problem in that the price does not update on the Category View page when an option that costs more than the base price is selected.

Product Page.. everything works as expected.
https://www.cooksroom.co.uk/2demo/zola-matte-paint-to-order-true-handleless/high-line-base-units.html

Any idea how I can fix this on the Category View page please?

I have only 2 template overrides (Sublayouts - products_horizon.php and products_slim.php) and have tried removing these. I have also tried changing my template to the Joomla default and the problem is the same.

I am using VM 3.4.2 with Joomla 3.9.3.

Kind Regards
Claire  :D

GJC Web Design

  • 3rd party VirtueMart Developer
  • Super Hero
  • *
  • Posts: 8874
  • Virtuemart, Joomla & php developer
    • GJC Web Design
  • VirtueMart Version: 2.6.22 & 3.2.14
Re: Product prices not updating in Category View
« Reply #1 on: March 07, 2019, 23:09:20 pm »
you have a huge number of change events attached to the select and the ajax call doesn't fire at all

on standard vm I only see 2 -- vmprices and jq

try disabling customfields for all and your menu

why have all that js junk for a simple dropdown menu? .. just use some css
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

cjsmiff

  • Beginner
  • *
  • Posts: 19
  • A beginner
Re: Product prices not updating in Category View
« Reply #2 on: March 17, 2019, 00:01:01 am »
Hi,

Thank you for your reply. The menu came with the Joomla template but the price changes don’t work using the default Joomla template either.

I have just done a test using a string custom field and disabled the custom fields for all but the result is the same. The prices do not update on the product listing pages, they do update on the actual product page.

The tests you suggested I had already performed before posting here.

 :)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27389
  • Always on vacation
    • Jenkin Hill Internet
Re: Product prices not updating in Category View
« Reply #3 on: March 17, 2019, 14:31:48 pm »
Have you selected "Cart Input" for your custom field configuration?
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.4.3.10057 on Joomla 3.9.6 PHP 7.0.33
Testing VM 3.4.5.10059 on Joomla 3.9.6

cjsmiff

  • Beginner
  • *
  • Posts: 19
  • A beginner
Re: Product prices not updating in Category View
« Reply #4 on: March 17, 2019, 15:55:28 pm »
Hi Jenkinhill,

Yes, customs fields have cart input set.  :D

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2118
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Product prices not updating in Category View
« Reply #5 on: March 17, 2019, 19:50:39 pm »
You have an template error, You are missing the class "product-container" in your category view.

Jörgen @ Kreativ Fotografi
Joomla 3.9.1
Virtuemart 3.2.12
Olympiantheme Hera (customized)

jjk

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3441
  • using Matomo instead of Google Analytics
Re: Product prices not updating in Category View
« Reply #6 on: March 17, 2019, 20:36:31 pm »
Looks to me like the old 'Forte' template by Shape5, bundled with some third-party-addons of which some are dating back as far as 2012.
Did you get your template here? https://www.joomlart.com/member/downloads/shape5/free-joomla-templates/s5-forte
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

cjsmiff

  • Beginner
  • *
  • Posts: 19
  • A beginner
Re: Product prices not updating in Category View
« Reply #7 on: March 18, 2019, 23:27:47 pm »
You have an template error, You are missing the class "product-container" in your category view.

Jörgen @ Kreativ Fotografi

Bingo! Thank you!  :D

Except! That I can't figure out where to put it in the category/default.php file, everywhere I try it makes the prices update but it changes all other product prices to the same price too.

Any ideas where I should put it please? :D :D

cjsmiff

  • Beginner
  • *
  • Posts: 19
  • A beginner
Re: Product prices not updating in Category View
« Reply #8 on: March 18, 2019, 23:30:18 pm »
Looks to me like the old 'Forte' template by Shape5, bundled with some third-party-addons of which some are dating back as far as 2012.
Did you get your template here? https://www.joomlart.com/member/downloads/shape5/free-joomla-templates/s5-forte

Hi JJK,

Many thanks for you reply. Yes, you are right but my initial problem here is now solved.
Thanks again  :D :D :D

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2118
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Product prices not updating in Category View
« Reply #9 on: March 19, 2019, 06:50:29 am »
Glad You could solve it.

Jörgen @ Kreativ Fotografi
Joomla 3.9.1
Virtuemart 3.2.12
Olympiantheme Hera (customized)

cjsmiff

  • Beginner
  • *
  • Posts: 19
  • A beginner
Re: Product prices not updating in Category View
« Reply #10 on: April 12, 2019, 00:54:13 am »
 :( Unfortunately this isn't fixed, I couldn't find the right place to put the class "product-container" in category view. All my attempts ended up changing all of the prices on all of the products on the page to the price selected.

I have tried various different templates including Joomla's included Beez3 & protostar, plus a couple of paid templates but the problem persists! I'm not sure that it is template related having tried so many other templates.

Any more ideas please?
 :)

jenkinhill

  • UK Web Developer & Consultant
  • Global Moderator
  • Super Hero
  • *
  • Posts: 27389
  • Always on vacation
    • Jenkin Hill Internet
Re: Product prices not updating in Category View
« Reply #11 on: April 12, 2019, 12:13:51 pm »
Have a look at http://demo.virtuemart.net/  - this uses a styled version of Beez and VirtueMart default templates. Product prices update as expected.

The complete installation as used in the demo is available at http://dev.virtuemart.net/attachments/download/1159/com_virtuemart.3.4.5.10040_package_or_extract.zip
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.4.3.10057 on Joomla 3.9.6 PHP 7.0.33
Testing VM 3.4.5.10059 on Joomla 3.9.6

cjsmiff

  • Beginner
  • *
  • Posts: 19
  • A beginner
Re: Product prices not updating in Category View
« Reply #12 on: April 14, 2019, 22:51:35 pm »
Have a look at http://demo.virtuemart.net/  - this uses a styled version of Beez and VirtueMart default templates. Product prices update as expected.

The complete installation as used in the demo is available at http://dev.virtuemart.net/attachments/download/1159/com_virtuemart.3.4.5.10040_package_or_extract.zip

Hi, thank you again.

I am now working from a copy of my site here: https://www.cooksroom.co.uk/3demo/cornell-classic-alabaster/high-line-base-units-c-1.html
I have set Beez as the default Joomla Template and am playing around with VM configuration settings but still no joy. I enabled the VM Debug which gave me this:


        1 vmdebug 1 Language, default shoplanguage (VmConfig::$jDefLang): en_gb en-GB
        2 vmdebug vmTime: time to load config: 0.00742197036743164
        3 vmdebug There is no requested itemid loaded home Itemid Var1:

        101

        4 vmdebug getCategory 1880 1
        5 vmdebug my vars from router Var1:

        Array
        (
            [limitstart] => 0
            [virtuemart_category_id] => 1880
            [view] => category
            [limit] => 24
        )

        6 vmdebug Start used Ram 12M
        7 vmdebug getCategory 1880 0
        8 vmdebug Use already loaded category with children
        9 vmdebug getVendorId normal shopper
        10 vmdebug My Memory Limit in Bytes 1048576000
        11 vmdebug getCategory 1880 1
        12 vmdebug Found cached cat
        13 vmdebug my filter order Var1:

        product_name

        14 vmdebug getCategory 1880 1
        15 vmdebug Found cached cat
        16 vmdebug $limitStart Var1:

        0

        17 vmdebug vmTime: sortSearchQuery products: : 0.00198888778686523
        18 vmdebug SSL enabled
        19 vmdebug my filter order Var1:

        product_name

        20 vmdebug vmTime: sortSearchQuery products: featured: 0.000644922256469727
        21 vmdebug my filter order Var1:

        product_name

        22 vmdebug vmTime: sortSearchQuery products: discontinued: 0.000460147857666016
        23 vmdebug Set 0 to 0
        24 vmdebug isSuperVendor Not a vendor 0 Var1:

        0

        25 vmdebug getCategory 1877 0
        26 vmdebug End used Ram 24M
        27 vmdebug Peak memory peak 24M
        28 vmdebug vmTime: "VirtuemartControllerCategory" Finished task : 0.230931997299194
        29 vmdebug Use cache for mod products
        30 vmdebug my filter order Var1:

        product_name

        31 vmdebug vmTime: sortSearchQuery products: featured: 0.000620841979980469
        32 vmdebug my filter order Var1:

        product_name

        33 vmdebug vmTime: sortSearchQuery products: featured: 0.000417947769165039

Does this shed any light? It doesn't for me!
I'm just about to try overwriting the core files with the files from the download link you supplied, again Thank you.


cjsmiff

  • Beginner
  • *
  • Posts: 19
  • A beginner
Re: Product prices not updating in Category View
« Reply #13 on: April 14, 2019, 23:31:58 pm »
Installed the package as per your link jenkinhill and now using vmbeez3 for the shop template, category template and main Joomla template but still no joy: https://www.cooksroom.co.uk/3demo/cornell-classic-alabaster/high-line-base-units-c-1.html

Curiously!!! I have set 2 of the products to be Featured Products on this page and the prices update as they should do in the Module!! So, what is wrong in my component display area? I have nooooo idea!  :-\

Jörgen

  • Global Moderator
  • Full Member
  • *
  • Posts: 2118
    • Kreativ Fotografi
  • VirtueMart Version: 3.2.12
Re: Product prices not updating in Category View
« Reply #14 on: April 15, 2019, 05:32:38 am »
Cache problem ? Turn off cache and joomla cache plugin and clear cache to test.

Jörgen @ Kreativ Fotografi
Joomla 3.9.1
Virtuemart 3.2.12
Olympiantheme Hera (customized)