dromano 0 Posted October 18, 2012 Hi Jack, I tried and didn't work. I have used the code you write and my original code: preg_match('/([\d.]+)/', strip_tags($price[0]), $match); I dont want to be the cause for a headache..ok? Any idea ? Share this post Link to post Share on other sites
Jack_mcs 1,021 Posted October 18, 2012 Please provide the link to the page you are looking at and I will give it a try when I get the chance. Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
dromano 0 Posted October 18, 2012 Thanks Jack, Page: http://www.mundoled.com.do/tienda/product.php?productid=17708 Search string: <span id="product_price">xx,xxx.xx</span> Share this post Link to post Share on other sites
Jack_mcs 1,021 Posted November 12, 2012 I finally got a chance to test this and it worked fine for me. The only thing different is that I used the following as the search string, as mentioned in the text on the CompareMyPrice page in admin <span id="product_price">(.*)</span> Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites
dromano 0 Posted November 15, 2012 Hi Jack, Their have made changes since oct 17 I'll try to explain: In oct 17 their prices are show in DOP Pesos (not USD, 1USD = 40DOP) (primary currency=DOP). In nov 12 their prices are show in USD and DOP (both) (primary currency=USD). now their "product_price" is for USD currency (works fine for prices under 999) (primary currency=USD). now their "product_alt_price" is for DOP currency (works fine for prices under 999, but not works for prices over 999) (primary currency=USD). But in my store the primary currency is DOP Pesos not USD. (remember 1USD = 40DOP) When i try to compare with <span id="product_alt_price">(.*)</span> dont work because USD500 = DOP20,000 (primary currency showed in my store). Hope you understand me. Thanks Jack Share this post Link to post Share on other sites
Jack_mcs 1,021 Posted November 15, 2012 There's nothing in this contribution to account for comparing different currencies. It assumes you will be comparing to a site using the same as your site. Support Links: Need Help? See this thread and provide the information requested. Is your version of osC up to date? You'll find the latest osC version (the community-supported responsive version) here. How to Upgrade to the latest version Recommended SEO Addons Share this post Link to post Share on other sites