News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Product prices not updating in Category View

Started by cjsmiff, March 07, 2019, 22:47:17 PM

Previous topic - Next topic

cjsmiff

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

#1
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 https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 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
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

cjsmiff

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

Have you selected "Cart Input" for your custom field configuration?
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

cjsmiff

Hi Jenkinhill,

Yes, customs fields have cart input set.  :D

Jörgen

You have an template error, You are missing the class "product-container" in your category view.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

jjk

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

#7
Quote from: Jörgen 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

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

Quote from: jjk 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

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

Glad You could solve it.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

cjsmiff

 :( 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

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
Lowestoft, Suffolk, UK

Retired from forum life November 2023

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

cjsmiff

Quote from: jenkinhill 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

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

#13
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

Cache problem ? Turn off cache and joomla cache plugin and clear cache to test.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.