esia168
Forum Replies Created
-
Forum: Plugins
In reply to: [Photo Reviews for WooCommerce] Stars count shown not accuratethat’s great, it worked, thank you so much !!
Forum: Plugins
In reply to: [Photo Reviews for WooCommerce] Stars count shown not accurateHi, can provide an email, I send to your email instead ? Thanks
Hi, i only need this to be solved so does not need Elite version at the moment, would you be kind to point out to me which php file and function that generate the value of the custom attribute ? I will make a IF statement, if the value is array, just return the first element, that’s good enough for me.
Hi Eva, after I regenerate the feeds then the duplicate is gone, I am guessing that when I click Refresh, there’s no response, then I click again and again until there’s response on the percentage, then multiple process running then cause the duplicate ?
Okay, finally I know the solution, for people who had the same problem. Indeed it is the server cache. So if you want to download the CSV file. Just append ?v=1 into the url, increase the number by 1 everytime you Referesh the feed and download to make the URL unique.
Maybe you should implement this into your plugin ?
- This reply was modified 5 years, 10 months ago by esia168.
Btw, you could checkout this shipping calculator plugin that display shipping info on product page https://codecanyon.net/item/woocommerce-shipping-calculator-on-product-page/11496815 , how they implement is quite simple but smart, basically what they did is add an item into the Woocommmerce (WC) cart programmatically, then use the existing WC code that is used in the checkout page to get the shipping information. So there’s no need to reinvent the wheel/functions on getting the shipping information. I have improvise their code to generate the string of shipping for multiple countries on a product. Wonder if you can follow some inspiration/solution from them. Here is roughly how
public function googleShippingFeedStr(){ $originalSetting = $_POST['calc_shipping_country']; $countries = ['US','CA', 'AU', 'GB', 'CH', 'SE', 'DK', 'FR', 'DE', 'AT', 'BE', 'IE', 'IL', 'IT', 'JP', 'NL', 'NZ', 'NO', 'PL', 'PT', 'ZA', 'ES', 'TR', 'SG', 'MY', 'ID', 'AE', 'SA', 'KR', 'TH', 'VN', 'MX']; $shipCountryFeed = []; foreach($countries as $country){ $_POST['calc_shipping_country'] = $country; WC_Shortcode_Cart::calculate_shipping(); if (isset($_POST["product_id"]) && $this->check_product_incart($_POST["product_id"]) === false) { $qty = (isset($_POST['current_qty']) && $_POST['current_qty'] > 0) ? $_POST['current_qty'] : 1; if (isset($_POST['variation_id']) && $_POST['variation_id'] != "" && $_POST['variation_id'] > 0) { $cart_item_key = WC()->cart->add_to_cart($_POST["product_id"], $qty, $_POST['variation_id']); } else { $cart_item_key = WC()->cart->add_to_cart($_POST["product_id"], $qty); } $packages = WC()->cart->get_shipping_packages(); $packages = WC()->shipping->calculate_shipping($packages); $available_methods = WC()->shipping->get_packages(); WC()->cart->remove_cart_item($cart_item_key); } else { $packages = WC()->cart->get_shipping_packages(); $packages = WC()->shipping->calculate_shipping($packages); $available_methods = WC()->shipping->get_packages(); } wc_clear_notices(); if ($this->get_setting('shipping_type') == 2) { if (isset($available_methods[0]["rates"]) && count($available_methods[0]["rates"]) > 0) { $count = 0; //echo '<ul class="shipping_with_price">'; foreach ($available_methods[0]["rates"] as $key => $method) { $finalCost=$method->cost; if(isset($method->taxes) && !empty($method->taxes)){ foreach($method->taxes as $tax){ $finalCost=$finalCost+$tax; } } //echo "<li>"; //echo wp_kses_post($method->label) . " <strong>(" . wc_price($finalCost) . ")</strong>"; //echo "</li>"; $pos = false; $shipName = $method->label; if( ($pos = stripos($shipName, '[')) !== FALSE ) $shipName = trim(substr($method->label, 0, $pos )); $shipCountryFeed[] = $country.'::'.$shipName.':USD'.$finalCost; break; //only the first default most important shipping } //echo '</ul>'; } } } //reset $_POST['calc_shipping_country'] = $originalSetting; WC_Shortcode_Cart::calculate_shipping(); return join(',', $shipCountryFeed); }
Hi, definitely not the filter because a new product will not show up today, but will show up tomorrow or few hours later in the feed after I refresh without me touching the filter at all. I have tried to turn on every hour refresh, see how if it helps.
Hi, so automated refresh has to be on ? Even I don’t have new product added for sometime, so I don’t want eat the server resource by making it auto refresh. So by triggering refresh manually won’t work alone ? I still have to have automated refresh on ? I am still having the same issue, it won’t show up for the new product.
I have delete all the WP-Cache and also try incognito login into the wordress, not working.
Hi, yes, I did manual refresh like your screenshot as I have automatic refresh disabled. I am sure there’s no filter that filter it out as I have no filter at all. And it seems to behave strangely as before, a new product won’t get generated until a few hours later. I suspect it could be a scheduler issue ? If you can point out what is your scheduler that needs to be run ? I have the WP Crontrol installed.
Hi, it seems like the problem is more complex than that. I have added a new product again and turn off the WP Super Cache, use the chrome incognito browser to login and refresh and download a few times, still it doesn’t want to show the new product. Any more ideas ? Any scheduler I can run manually ?
Oh Wow, yes, indeed I was using WP Super Cache, I disable it and also use the browser incognito mode then now I see my new product. Thanks
Hi, I have copied the whole database and import, why does the at the manage feeds, no feeds are available ? What could be the cause ? Version difference ? Also, it really once when I start the processing, it’s using a high cpu resource when I check with uptime command, there are 150 processing queue, I am using php 7.2 , hosted in google VM with 1 vCpu and 4GB RAM, debian linux, that should be enough. I think there’s some configuration issue ?
The product info says :
You currently have 2209 published products on your website out of which 98 are single products and 2111 are variable products.Is this a lot ?
Hi, in the production I have the SKU number filled in the inventory tab of the product edit page.
My localhost environment database is a copy of the production database. So they should have the same data.
Also it’s strange that when I import the database of the production, all my feeds in Manage Feeds are gone in localhost, I have to create a new feed from the scratch. Where is the feed setting stored ? Not in the database ?
I want to generate the feed from my localhost because the feed processing takes a huge cpu power and cause my web server to hang. I wonder if there’s a solution for this also ?
Thanks
- This reply was modified 6 years, 1 month ago by esia168.
Hi, sorry, is there a way I can private message ? Or email ? Thanks
I notice that this plugin can only show the shipping price for Flat Rate shipping (USD 1.55) . I have other shipping method using this plugin (below) which the shipping cost is more expensive, but product feed pro does not process the price and display the Flat Rate shipping value (USD 1.55) instead to all my shipping method. Can help ? Thanks
https://www.ads-software.com/plugins/weight-based-shipping-for-woocommerce/
<g:shipping>
<g:country>PG</g:country>
<g:service>Papua Standard Shipping PG</g:service>
<g:price> USD 1.55 </g:price>
</g:shipping>
<g:shipping>
<g:country>PG</g:country>
<g:service>Papua Standard shipping (epacket) PG</g:service>
<g:price> USD 1.55 </g:price>
</g:shipping>
<g:shipping>
<g:country>PG</g:country>
<g:service>Papua DHL PG</g:service>
<g:price> USD 1.55 </g:price>
</g:shipping>
<g:shipping>
<g:country>PG</g:country>
<g:service>Papua Weight Based Shipping PG</g:service>
<g:price> USD 1.55</g:price>
</g:shipping>- This reply was modified 6 years, 6 months ago by esia168.