Do you like AbanteCart? Please rate AbanteCart or share your experience with other eCommerce entrepreneurs. Go to Softaculous rating page to add your rating or write a review

Block for custom producst result 0.,00$ it does not get the price right

Started by payamstudent, May 24, 2012, 02:55:44 AM

Previous topic - Next topic

payamstudent

Hello,

When i create a block and choose my customer products the result in the store front come with the value of 0.00$. would you please advise ?

thank you.

abantecart

Thank you.

This is bug. It is fixed and will be on 1.0.2 next week.

Here is the fix:
storefront/controller/blocks/listing_block.php


@@ -290,7 +290,7 @@

                                }

-                               if(isset($item['price'])){
+                               if(isset($item['price']) && preg_match('/^[0-9\.]/',$item['price'])){
                                        $result[$k]['price'] = $this->currency->format($this->tax->calculate($item['price'], $result['tax_class_id'], $this->config->get('config_tax')));
                                }
                                $result[$k]['url'] = $this->html->getSEOURL($data_source['storefront_view_path'],'&'.$data_source['data_type'].'='.$item[$data_source['data_type']]);

Please  rate your experience or leave your review
We need your help to build better free open source ecommerce platform for everyone. See how you can help

Forum Rules Code of conduct
AbanteCart.com 2010 -