Hi
I encountered a problem in ubercart views. .
In views i have given add to cart form fields, and in sort criteria Global-Random. . I am dispalying only 6 items of all product. If i click add to cart button, certain product is not added in my cart. . but if the added product appears in next random generation certain product is added to my cart. . Please fix this issue. . Thankyou

with regards,
sugumarandeveloper

Comments

madsph’s picture

I am not sure where to start in order to reproduce your problem.

Can you export your view and attach it here so I can see what you have?

sugumarandeveloper’s picture

yeah I have attached the views and screen shot of my views

sugumarandeveloper’s picture

Can anyone fix this issue. . .

madsph’s picture

This is indeed strange behavior.

I can reproduce your error but can't see what happens. The form that is generated is exactly identical for both products added and those that are not added, and there are no errors in log.

I tried changing the sort criteria to use the Order product: sum_qty from uc_views in stead of uc_best_sellers (they should display the same). By doing so I no longer get the error - but since I can't explain why this should help, I can't guarantee that it is not just because I haven't had enough patience to wait for the error to appear again.

What ever happens here, I am pretty sure that the error is not produced from any of the components of uc_views, since it seems to be a combination of Product: Buy it now button from uc_product module, uc_best_sellers: sold_count from uc_best_sellers module and Global: Random from views module.

Sorry I can't solve the problem better :-(

madsph’s picture

Category: bug » support
Priority: Critical » Normal
Status: Active » Closed (fixed)
madsph’s picture

Found an explanation of the problem on ubercart.org:

http://www.ubercart.org/issue/12802/add_cart_button_doesnt_work_views_an...

anujindia’s picture

add to cart button is not showing in frontend while i have uploaded the product
i dont know it will show by itself or by some coding
i am new in drupal so please help me out