Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Joomla Virtuemart Template - DarkMart (SKU# FLEX-00011)

TOPIC: Manufacturer dropdown+ error on Category[SOLVED]

Manufacturer dropdown+ error on Category[SOLVED] 10 years 10 months ago #5091

Hello, I bought and installed your great DarkMart template in a website I am developing, imported some products and manufacturers (not images yet) and I am encountering a couple of problems I hope you'll help me to fix.

1. In the category view I do correctly see the first dropdown menu (from left) which sorts items (ID, SKU, Name and so on) but I cannot see the second one (very important for us) that is the 'Select Manufacturer' one. What can I do to display it on every category as shown on your demo?

2. If I set a category as list view (one product per row), the following error does appear (close to add to cart button):
Warning: Invalid argument supplied for foreach() in /home/yourguit/public_html/templates/flexible_darkmart/html/com_virtuemart/category/default.php on line 418
How can I fix it?
This error started appearing after a massive import we did by CSV improved PRO. If we do insert manually the products it doesn't but, as you may undestand, we cannot manually upload 3000+ products :-)

I attached a shot as an example.

Thank you.

Best,

Maurizio
Attachments:
Last Edit: 10 years 10 months ago by Maurizio Urbani.
The topic has been locked.

Manufacturer dropdown + error on categor list view 10 years 10 months ago #5099

Hello,

I experience the same problem refered to the warning at line 418. You can see an answerat the link below:

www.flexiblewebdesign.com/forum-joomla-virtuemart-template-darkmart-support/805-warning-invalid-argument-supplied-for-foreach

For him worked correctly...I experience one issue after changing the php lines, "add to cart" button disappeared!
If you find any way to get it fixed, please inform me.
The topic has been locked.

Manufacturer dropdown + error on categor list view 10 years 10 months ago #5100

Hello, thank you for your reply. In my case the warning is shown not on details page but in the category list view.

I hope the Admin will reply soon so that he will help us to dfix those issues.
The topic has been locked.

Manufacturer dropdown + error on categor list view 10 years 10 months ago #5101

Hello again Dimitris, I partially solved the Warning's problem by disabling the error report on Joomla.
But anyway I hope that someone at support will reply soon because I definitely need to solve also my problem with Manufacturer dropdown on Categories
The topic has been locked.

Manufacturer dropdown[SOLVED] + error on Category 10 years 10 months ago #5102

The Manufacturer dropdown has been solved. It was just a Virtuemart 2 Configuration issue.

Waiting a reply in how to fix the warning on category list
The topic has been locked.

Manufacturer dropdown + error on categor list view 10 years 10 months ago #5104

Also on my site, warning appeared in category list. If you try, maybe ll solve your warning.
Last Edit: 10 years 10 months ago by Dimitris Sk.
The topic has been locked.

Manufacturer dropdown[SOLVED] + error on Category 10 years 10 months ago #5109

Yes the warning disappeared but also the Add to Cart Button as you notified so the modification is not OK. Hope the admin will help us asap!
The topic has been locked.

Manufacturer dropdown[SOLVED] + error on Category 10 years 10 months ago #5114

Ah! found the problem

add the if statement after $customFieldCheck = 1;

then the add to is still there
 
if ($params->get('category_addtocart_list',1)) {
 
		$customFieldCheck = 1;
                    if($product->customfieldsCart){//added for if check
			foreach ($product->customfieldsCart as $field) {
				if (($field->field_type == "E") || ($field->field_type == "A")) {
				      $customFieldCheck = 0;
				}
			}
		}//added for if
 

Cheers
The topic has been locked.

Manufacturer dropdown[SOLVED] + error on Category 10 years 10 months ago #5163

Thank you John, it works. I am going to mark this post as solved.
Best,
Maurizio
The topic has been locked.

Manufacturer dropdown[SOLVED] + error on Category 10 years 10 months ago #5176

We do our best.. he he

thanks

topic solved
The topic has been locked.
Time to create page: 0.109 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo