VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: whoami on December 27, 2011, 16:06:01 PM

Title: The word "array" in category view [SOLVED]
Post by: whoami on December 27, 2011, 16:06:01 PM
Strange thing. I've installed VM20 on two J17 websites with different templates. (Default VM views) When I want to open a category view, the first site opens the page correctly with all the products but with the word "array" beneath the category title and the second one only shows in a white page (no template) the category title and the word "array".

What is the problem? I've disabled and enabled the jQuery VM. Nothing happens.

Thanks in advance.
Title: Re: The word "array" in category view
Post by: PRO on December 27, 2011, 16:09:17 PM
that happens when the variable is wrong. are you using template overrides?
Title: Re: The word "array" in category view
Post by: jjk on December 27, 2011, 16:40:28 PM
I currently have the same small "Array" problem. I'm not shure yet, but I suppose it is related to a problem with the "manufacturercategories_language" tables. Mine are currently empty and adding a new manufacturer category doesn't save the new data into the table(s). Also my sort-by manufacturer drop-down is gone (it used to be where I now see the word "Array").

...still searching for a solution...:-)
Title: Re: The word "array" in category view
Post by: whoami on December 27, 2011, 21:06:12 PM
@BanquetTables.pro
Quote from: BanquetTables.pro on December 27, 2011, 16:09:17 PM
that happens when the variable is wrong. are you using template overrides?
On one site I'm using overrides based on the originals. Here is everything ok (except the "array" word)
The other site I'm using no overrides and the template is based on the JV Framework. This one is a mess.

After all I'm using overrides on both sites. Delete the override on one site and everything works as expected. Thanks

@jjk
Hope you find the solution.
Title: Re: The word "array" in category view [SOLVED]
Post by: JJBW on January 04, 2012, 20:02:27 PM
Hi all.

I have this problem but when I remove a template override for category view everything works, however, now in the category view I have either a house or arrows icon with the word availability and I can't change it.  Has the stock system been replaced or massively modified?

Has anyone found a solution to this yet?

Many thanks.
Title: Re: The word "array" in category view [SOLVED]
Post by: jjk on January 04, 2012, 20:16:05 PM
I did find the problem on my site, but forgot to post the solution here. In my case - if I remember correctly - I had forgotten to update my customized (override) version of:
...\components\com_virtuemart\views\category\tmpl\default.php to match recent code changes.
Title: Re: The word "array" in category view [SOLVED]
Post by: PRO on January 04, 2012, 20:33:39 PM
Quote from: JJBW on January 04, 2012, 20:02:27 PM
Hi all.

I have this problem but when I remove a template override for category view everything works, however, now in the category view I have either a house or arrows icon with the word availability and I can't change it.  Has the stock system been replaced or massively modified?

Has anyone found a solution to this yet?

Many thanks.

you FIX the override, dont remove it.

Its a simple fix
Title: Re: The word "array" in category view [SOLVED]
Post by: JJBW on January 04, 2012, 21:10:24 PM
Hi

Thank you both for your quick replies.  I realised (eventually) that I needed to modify my template override which I've now done and all is working great.

On a totally different note does anyone know why language strings appear in custom fields plugins rather than their text value?  For example:

COM_VIRTUEMART_COMMENT
VMCUSTOM_PRICE_BY_LETTER
VMCUSTOM_STOCKABLE_SIZE
COM_VIRTUEMART_PRODUCT_WIDTH
COM_VIRTUEMART_PRODUCT_LENGTH
COM_VIRTUEMART_PRODUCT_HEIGHT
VMCUSTOM_SPECIFICATION_DEFAULT_INFO

Thank you all for your help your support is truly second to none!  Brilliant!!
Title: Re: The word "array" in category view [SOLVED]
Post by: PRO on January 04, 2012, 21:34:40 PM
Quote from: JJBW on January 04, 2012, 21:10:24 PM
Hi

Thank you both for your quick replies.  I realised (eventually) that I needed to modify my template override which I've now done and all is working great.

On a totally different note does anyone know why language strings appear in custom fields plugins rather than their text value?  For example:

COM_VIRTUEMART_COMMENT
VMCUSTOM_PRICE_BY_LETTER
VMCUSTOM_STOCKABLE_SIZE
COM_VIRTUEMART_PRODUCT_WIDTH
COM_VIRTUEMART_PRODUCT_LENGTH
COM_VIRTUEMART_PRODUCT_HEIGHT
VMCUSTOM_SPECIFICATION_DEFAULT_INFO

Thank you all for your help your support is truly second to none!  Brilliant!!

download the missing file
https://dev.virtuemart.net/svn/virtuemart/trunk/virtuemart/administrator/language/en-GB/

MAKE sure you put it in administrator/language
Title: Re: The word "array" in category view [SOLVED]
Post by: JJBW on January 04, 2012, 21:42:51 PM
Excellent, thank you.

Just one other thing, really sorry about this!  Since upgrading to latest version tonight I've also discovered that the payment and shipping information has gone.  Information still exists in the database for example in _virtuemart_shipment_plg_weight_countries and _virtuemart_paymentmethods but nothing in backend menu.

Any ideas please?

Many thanks once again!
Title: Re: The word "array" in category view [SOLVED]
Post by: erecske on February 03, 2012, 21:18:34 PM
Quote from: JJBW on January 04, 2012, 21:10:24 PM
I realised (eventually) that I needed to modify my template override which I've now done and all is working great.

How did you do it exactly?
Title: Re: The word "array" in category view [SOLVED]
Post by: barrya on February 15, 2012, 19:31:27 PM
"I realised (eventually) that I needed to modify my template override which I've now done and all is working great."

yes I would also like to know please?
Title: Re: The word "array" in category view [SOLVED]
Post by: isamar on September 10, 2015, 20:20:36 PM
sorry but do not understand what you do for template override.

I have also the word ARRAY displayed but next to product name at the checkout page