bigdrop.gr
Forum Replies Created
-
Forum: Plugins
In reply to: [Import any XML, CSV or Excel File to WordPress] Import categories hierarchyMy file with categories looks like this:
https://prnt.sc/12379kkI saw this thread where you suggest that “your import file should only contain a single category per-record with a reference to the parent category”.
So, I guess that my upload file should look like this:
https://prnt.sc/1237dyoSince I do have grand-child categories with the same name and the same child-category but different Parent category how do I make sure that everything will be nested properly on my site?
I tried to import the file with all the categories with this structure https://prnt.sc/1237dyo and I ended up with all the grand child categories nested under the first child category with the same name.
- This reply was modified 3 years, 11 months ago by bigdrop.gr.
Ok thank you!
Hi,
Thank you very much for your reply.
Can you please help me in a minor change to your code?
All the prices from the XML must be multiplied by the $adjust_map and then I need to add 3,5 (fixed amount) and then round them up to 2 decimals.
Is this code ok?function price_adjust_import( $price, $element ) { $price = str_replace( ',', '.', $price ); $adjust_map = array( 'laptops' => 1.4, 'smartphones' => 1.6, 'keyboards' => 1.5, 'default' => 1.3 ); return ( array_key_exists( $element, $adjust_map ) ) ? ( round( ($price + 3.5) * $adjust_map[ $element ], 2 ) ) : ( round( ($price + 3.5) * $adjust_map[ 'default' ], 2 ) ); }
- This reply was modified 4 years, 1 month ago by bigdrop.gr.
I need to create a feed in XML form for all the orders that are places on my store. I need then to import this feed to my ERP.
So I need a feed that will look something like this:
<xml> <paymentInfo> <method>other</method> </paymentInfo> <personalDetails> <firstName>first K</firstName> <lastName>second K</lastName> </personalDetails> <item> <productId>561</productId> <quantity>1</quantity> <name> Woodlets Premium Wood Pellets - Full Pallet - 980kg </name> <subtotal>0</subtotal> <subtotalTax>0</subtotalTax> </item> </xml>
I managed to check it by importing it as a feed to another site.
It works like a charm! Thank you!!!- This reply was modified 4 years, 1 month ago by bigdrop.gr.
Hi,
Thank you for your reply. I created a rule exactly as you suggested. Please check this https://prnt.sc/ydu6kz
This is my XML feed:
https://epohishop.gr/wp-content/uploads/woo-product-feed-pro/xml/pqjsqHbGPRZ3qg7ku1kBLlEtBZFMJODj.xmlIt is unfortunately not readable so I could not check if it is ok.
- This reply was modified 4 years, 1 month ago by bigdrop.gr.
Forum: Plugins
In reply to: [Facebook for WooCommerce] Products shows shortcodes on facebook shopThat is exactly my settings. But it still shows shortcodes on facebook.
Forum: Plugins
In reply to: [Yoast SEO] Id is missing BreadcrumbsHi, the home page has a title.
Do you want me to check anything else?So I fixed this!
The field mapping was wrong.
It was like this: https://prnt.sc/ulm6iqAnd I changed it to this:
https://prnt.sc/ulwomcAnd it works.
After 5 hours it still flashes at 29% and not updating.
I followed your previews answer, where you pointed me to this…
https://www.dropbox.com/s/wgqbj9ixcivr086/availability-rule.png?dl=0So I changed it to this:
https://prnt.sc/ulpwfeI clicked the refresh button, it just get stock to 29%. And the feed is not updated.
Here is my rule https://prnt.sc/ulm5fx.
General feed settings https://prnt.sc/ulm5y0.
Field mapping settings https://prnt.sc/ulm6iq.
Can you tell me what am I missing?
Hi,
On a preexisting feed, I created a new rule based on this
https://www.dropbox.com/s/wgqbj9ixcivr086/availability-rule.png?dl=0
I update the feed but it does not show the changes. It still says “instock”.Am I missing something?
Here is my feed https://carit.gr/wp-content/uploads/woo-product-feed-pro/xml/ujS1t5SyhwPir2q9T6djgCBSDRIL0wN1.xml
When I click on “update feed” it flashes “processing (0%)” and after a couple of secs it says ready but nothing changes.
If I add new products, they do appear on the feed but the new rule is not applied.
I created this for Skroutz.gr
- This reply was modified 4 years, 6 months ago by bigdrop.gr.
- This reply was modified 4 years, 6 months ago by bigdrop.gr.
- This reply was modified 4 years, 6 months ago by bigdrop.gr.
Thank you very much!!
That worked like a charm!!Hi,
Thank you for your reply. I made the changes that you suggested to my code.
It almost works.
What I mean “almost”.. The majority of the products the price is calculated properly but in some cases the numbers are wrong.In one case the product netprice is 59 and after my maths it should be 84.134 but instead it is 84134. It skips the period. So I have products that instead of costing 84 Euros they cost 84 thousands euros.
My exact code is:
function price_adjust_import( $price, $element ) { $price = str_replace( ',', '.', $price ); $adjust_map = array( 'ATLAS' => 1.426, 'AVON' => 1.426, 'B.F. GOODRICH' => 1.426, 'BARUM' => 1.426, 'BRIDGESTONE' => 1.426, 'CONTINENTAL' => 1.426, 'COOPER' => 1.426, 'DEBICA' => 1.426, 'DELINTE' => 1.426, 'DIVERSEN' => 1.426, 'DOUBLE STAR' => 1.426, 'DUNLOP' => 1.426, 'DURATURN' => 1.426, 'FALKEN' => 1.426, 'FIREMAX' => 1.426, 'FIRESTONE' => 1.426, 'FORTUNA' => 1.426, 'FULDA' => 1.426, 'GAJAH TUNGGAL' => 1.426, 'GISLAVED' => 1.426, 'GOFORM' => 1.426, 'GOODRIDE' => 1.426, 'GOODYEAR' => 1.426, 'HANKOOK' => 1.426, 'IMPERIAL' => 1.426, 'KLEBER' => 1.426, 'KUMHO' => 1.426, 'LANDSAIL' => 1.426, 'LINGLONG' => 1.426, 'MASTER-STEEL' => 1.426, 'METEOR' => 1.426, 'METZELER' => 1.426, 'MICHELIN' => 1.426, 'MILESTONE' => 1.426, 'MINERVA' => 1.426, 'NANKANG' => 1.426, 'NEXEN' => 1.426, 'NOKIAN' => 1.426, 'PIRELLI' => 1.426, 'ROADHOG' => 1.426, 'SEMPERIT' => 1.426, 'SUPERIA' => 1.426, 'TOYO' => 1.426, 'TRISTAR' => 1.426, 'TYFOON' => 1.426, 'UNIGRIP' => 1.426, 'UNIROYAL' => 1.426, 'VREDESTEIN' => 1.426, 'WANLI' => 1.426, 'WESTLAKE' => 1.426, 'YOKOHAMA' => 1.426 ); return ( array_key_exists( $element, $adjust_map ) ) ? ($price * $adjust_map[ $element ] ) : $price; }
For the same brand tires (Goodyear) it calculates hundreds of product prices correct and a couple of them wrong.
What might be the problem now?