reydempto
Forum Replies Created
-
Forum: Plugins
In reply to: [Flat Rate Shipping Plugin For WooCommerce] Compatiable with Variable productDotstore (@dots)
3 weeks, 4 days ago
Hello sguha007,Thanks for reaching out to us.
Sorry to say but, in our current plugin version you can search only simple products for the shipping rules.
Thanks,
Why is that? I am pretty sure this used to work and now it doesn’t and I am starting to realize half the products in my shop no longer have shipping definitions. What was the last version that had this feature? I am going to have to roll back.
Same here! Hope to see a solution to this, been digging in the woocommerce core for hours to find out what controls this. IT also shows up in the order emails.
That helped immensely, thank you! I have to give one of three different messages depending on which region the billing address is in.
I have continued the code like this:
<?php if( $this->order->billing_country == 'DE' ) : ?> <?php echo "Zwischensumme inkl. 19% MwSt. Versandkosten steuerfrei." ?> <?php endif; ?> <?php if( $this->order->billing_country == 'AL,AD,AT,BY,BE,BA,BG,HR,CY,CZ,DK,EE,FO,FI,FR,GI,GR,HU,IS,IE,IM,IT,RS,LV,LI,LT,LU,MK,MT,MD,MC,ME,NL,NO,PL,PT,RO,RU,SM,RS,SK,SI,ES,SE,CH,UA,GB,VA,RS' ) : ?> <?php echo "Tax free § 4 Nr. 1b UStG / Intra - Community Delivery." ?> <?php endif; ?> <?php if( $this->order->billing_country != 'DE,AL,AD,AT,BY,BE,BA,BG,HR,CY,CZ,DK,EE,FO,FI,FR,GI,GR,HU,IS,IE,IM,IT,RS,LV,LI,LT,LU,MK,MT,MD,MC,ME,NL,NO,PL,PT,RO,RU,SM,RS,SK,SI,ES,SE,CH,UA,GB,VA,RS' ) : ?> <?php echo "Tax free export!" ?> <?php endif; ?>
The first part works fine. If the billing_country is DE, we get the German tax message.
The second part is for within the EU, and the third part is for the rest of the world. However, if the billing_country is anything else besides DE, I get message three (rest of the world). My guess is that it’s not possible to use a comma’d list of country codes like this..it just made sense in my mind to use the same comma’d list of country codes and just say “if this DOES NOT equal, give x response”.
EDIT: I have figured out how to do this bit! I created an array of the country codes necessary:
<?php if( $this->order->billing_country == 'DE' ) : ?> <?php echo "Zwischensumme inkl. 19% MwSt. Versandkosten steuerfrei." ?> <?php endif; ?> <?php $country_codes = array("AL","AD","AT","BY","BE","BA","BG","HR","CY","CZ","DK","EE","FO","FI","FR","GI","GR","HU","IS","IE","IM","IT","RS","LV","LI","LT","LU","MK","MT","MD","MC","ME","NL","NO","PL","PT","RO","RU","SM","RS","SK","SI","ES","SE","CH","UA","GB","VA","RS"); if (in_array($this->order->billing_country, $country_codes)) { echo "Tax free § 4 Nr. 1b UStG / Intra - Community Delivery."; } if (!in_array($this->order->billing_country, $country_codes)) { echo "Tax free export!"; } ?>
Now it works fine. Thank you so much for your help, you really put me on the right track. Great plugin!!
- This reply was modified 7 years, 10 months ago by reydempto.
- This reply was modified 7 years, 10 months ago by reydempto.
- This reply was modified 7 years, 10 months ago by reydempto.
- This reply was modified 7 years, 10 months ago by reydempto.
- This reply was modified 7 years, 10 months ago by reydempto.
- This reply was modified 7 years, 10 months ago by reydempto.
- This reply was modified 7 years, 10 months ago by reydempto.
- This reply was modified 7 years, 10 months ago by reydempto.
Forum: Plugins
In reply to: [Zip Attachments] timeout when generating zipHave you figured anything out? Or at least have any advice or a nudge in the right direction? My users have been bugging the hell out of me for this. Maybe there is an alternative? If I/you/we can get this working perfectly , I would be happy to contribute some donations to your projects!
Forum: Plugins
In reply to: [Zip Attachments] timeout when generating zipAwesome, thanks! Can’t wait >:)
Forum: Plugins
In reply to: [Zip Attachments] timeout when generating zipWell first thanks for your reply. As for a link to my site, it came to the point where I had to disable the plugin. Here’s a bit more info:
The size of the files i am zipping tended to be around 350 mb, and when your code generates the zip and places it in the /tmp folder on my server, it fails to clear those temp zip files afterwards. In a day, my 160GB of server space was almost full because the temp folder was clogged. This led to memory allocation errors and all kinds of other wonderful errors…
So basically what needs to be done is there has to be a modification to the script to remove the temp file after it has been served, keeping the /tmp folder from being filled. Think this is something doable?
As for the original memory errors I was getting, it seems that the high amount of traffic my site gets combined with this tmp issue was it. If I can get the tmp folder to automatically clear, then I can deal with any potential memory spikes with a server upgrade.
Here’s my site: https://lastrewind.com — I am happy to donate my traffic to stress testing any modifications you have–I do at least 100GB of traffic per day lately.