News:

Looking for documentation? Take a look on our wiki

Main Menu

Random 'W' in all product listings!

Started by fing086, September 23, 2020, 23:19:40 PM

Previous topic - Next topic

fing086

Can anyone please point me in the direction of how to get rid of the 'W' that is circled in the attached image.
Its in every product but not part of any description text anywhere.
Even appears on fresh new uncloned products!
I just cant see where its coming from, even when looking at the source from within the browser!
Thanks in advance

pinochico

www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products


Jörgen

Someone has edited the template files and left an error in the product details file, probably ;
/templates/your template/html/com_virtuemart/productdetails/default.php

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

fing086

Ok, thank you very much for your prompt advise.
Ill take a look at that file, no wonder I couldn't find it... and this is a paid for professional template!
Ill let the template designer know also.


pinochico

#5
QuoteSomeone has edited the template files and left an error in the product details file, probably ;
/templates/your template/html/com_virtuemart/productdetails/default.php

Yes, without URL and look inside inspect element code, this is  the first most likely option.

But is possible the error is inside implementation paypal, this, I think, was added later.

Definitelly, the error is between "product-short-description" and solution for paypal (custom code putted inside php code for product default template).

Meybe is in this file or inside plugin which put the Paypal code.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

Jörgen

From what i see this is inside the Short description container...
Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

pinochico

nop, after this or maybe this div is have not end element corectly.

But first time I try find problem in paypal code.
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

fing086

Yeah, I already disabled the paypal plugin as that was my first thought.
Rather than mess about, im getting the template author to sort it out as no doubt its an error in the originally supplied files.
Also the site is running really slow and they can look at that as well!

Thanks for pointing me in the right direction and letting me know it wasnt something I was missing or doing wrong :)
Very much appreciated.

fing086

A response from the template author:

Using your FTP access we checked the templates files - we checked website without template overrides and a "W" letter is still there. Looking closer into the code generated in web browser a "W" letter comes with PayPal plugin and has nothing to do with the template code.

Where do I go from here as I dont have this issue on other Virtuemart sites I run, both using the authors other templates and by installing Virtuemart separately?

Jörgen

If it really disappears with PayPal plugin, even though You have said otherwise:
QuoteYeah, I already disabled the paypal plugin as that was my first thought.

You should check all the settings in backend for the PayPal payment method.

PayPal checkout ? If that is not something controlled from the PayPal settings, You some extra plugin to disable.

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

fing086

Hi, thanks for the continued advice.
I removed paypal completely and even added another payment method but the W is still there.
In the code for that page (found using Chrome) I found the following

<div class="product-short-description"><span class="module-arrow"></span>
               Acrylic Bookmarks. available in a variety of colours            </div>
                    W<br><div class="product-price" id="productPrice107" data-vm="product-prices">

However, there is no 'W' in the short description as this looks like its pointing to.
All I really need to do (I think) is find the code that controls the product layout pages and hopefully this is where I will find the error, but I dont know which file this could be and 'W' is hard to search for as its not a string of letters!!

The Author is now not responding to my requests to sort this out .

pinochico

QuoteAll I really need to do (I think) is find the code

Maybe with login to FTP and some money ? :)
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

jenkinhill

#13
The problem we have here is that your template is using overrides to the standard template files.

From the location of the "w" it is most likely coming from one of two sublayout files, probably templates/coga/html/com_virtuemart/sublayouts/products.php 

Look in that file after <?php // Product Short Description   where you may find that w somewhere before the prices sublayout is called (by echo shopFunctionsF::renderVmSubLayout('prices',  or silimar).

Otherwise check the prices.php sublayout itself.
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

fing086

I only have addtocart addtocartbar and customfields (php files) and index.html in there and none point to a lone 'W'
Looked in prices.php in com-virtuemart and nothing in there either.

However, what you have said is basically where I am trying to look within code wise.