oppala
Forum Replies Created
-
I’ll do it so. Thks
Good night Mr Mike!
Now i’m facing two new troubles with the recently bought plugin!
The facts are, in first, I want to create hover Icons to the gallery we just created. It’s possible to create Facebook icons, “like, share and comment” to those photos we presented on this gallery, using your appointed code? If it is, can you point me a code or way to do it?
And the second one is a little troubleish than the first.
Im trying to display a slide show on mobile version, just to match the Instagram feed presented in the mobile version of my website. So it should display one Fb image and slide to another one in a seconds interval.
So I’ve found a way using the Javascript snippet wich is presented in this Smashballoon link.
But, it is not all flowers. The fact is that the slideshow is not presented fullscreen, even if it is inserted on a Divi fullscreen Section. Ill show you an screenshot for you to visualize what I’m talking about. https://imge.to/i/PHuj2 The ‘problem’ is pointed by the red arrow.Very thanks again!
- This reply was modified 6 years, 12 months ago by oppala.
Worked smooth and fine, very thankyou Mr. Mike! <3
Forum: Plugins
In reply to: [DHL WooCommerce Shipping Method] DHL as Shipping MethodYes Ill copy the request xml right below.
I think may be some trouble to converting from Chinese Yenes do US Dollars…
The code:
<?xml version="1.0" encoding="UTF-8"?> <p:DCTRequest xmlns:p="http://www.dhl.com" xmlns:p1="http://www.dhl.com/datatypes" xmlns:p2="http://www.dhl.com/DCTRequestdatatypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dhl.com DCT-req.xsd "> <GetQuote> <Request> <ServiceHeader> <MessageTime>2017-02-13T12:13:27</MessageTime> <MessageReference>1234567890123456789012345678901</MessageReference> <SiteID>SITE ID</SiteID> <Password>THATS THE PASSWORD</Password> </ServiceHeader> </Request> <From> <CountryCode>CN</CountryCode> <Postalcode>518106</Postalcode> </From> <BkgDetails> <PaymentCountryCode>CN</PaymentCountryCode> <Date>2017-02-13</Date> <ReadyTime>PT10H21M</ReadyTime> <DimensionUnit>CM</DimensionUnit> <WeightUnit>KG</WeightUnit> <Pieces> <Piece><PieceID>1</PieceID><PackageTypeCode>BOX</PackageTypeCode><Height>4</Height><Depth>7</Depth><Width>7</Width><Weight>0.15</Weight></Piece> </Pieces> <PaymentAccountNumber>603159945</PaymentAccountNumber> <IsDutiable>Y</IsDutiable> <NetworkTypeCode>AL</NetworkTypeCode> </BkgDetails> <To> <CountryCode>TW</CountryCode> <Postalcode>111</Postalcode> </To> <Dutiable><DeclaredCurrency>USD</DeclaredCurrency><DeclaredValue>6</DeclaredValue></Dutiable> </GetQuote> </p:DCTRequest>Forum: Plugins
In reply to: [DHL WooCommerce Shipping Method] DHL as Shipping MethodNi WooForce!
Finally i’ve got support from DHL, and they’ve created our live credentials.
Anyway, the shipping prices are returning incorrect.
Sending a product with 0.150kg and 10x10x5cm from China Guangdong 518106 to Taiwan Taipei 111, will cost in fact around 3 dollars, but the DHL Calculator return with U$33,984 with the EXPRESS WORLDWIDE method only.
What is going wrong?
<?xml version="1.0" encoding="UTF-8" standalone="no"?><res:DCTResponse xmlns:res='http://www.dhl.com' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation= 'http://www.dhl.com DCT-Response.xsd'><GetQuoteResponse><Response><ServiceHeader><MessageTime>2017-02-12T15:27:22.461+01:00</MessageTime><MessageReference>1234567890123456789012345678901</MessageReference><SiteID>xmlHondarSka</SiteID></ServiceHeader></Response><BkgDetails><OriginServiceArea><FacilityCode>SZS</FacilityCode><ServiceAreaCode>SZX</ServiceAreaCode></OriginServiceArea><DestinationServiceArea><FacilityCode>ESY</FacilityCode><ServiceAreaCode>TPE</ServiceAreaCode></DestinationServiceArea><QtdShp><GlobalProductCode>Q</GlobalProductCode><LocalProductCode>Q</LocalProductCode><ProductShortName>MEDICAL EXPRESS</ProductShortName><LocalProductName>MEDICAL EXPRESS</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>Y</POfferedCustAgreement><TransInd>N</TransInd><PickupDate>2017-02-13</PickupDate><PickupCutoffTime>PT18H</PickupCutoffTime><BookingTime>PT16H</BookingTime><CurrencyCode>CNY</CurrencyCode><ExchangeRate>0.146167</ExchangeRate><WeightCharge>352.800</WeightCharge><WeightChargeTax>0.000</WeightChargeTax><TotalTransitDays>1</TotalTransitDays><PickupPostalLocAddDays>0</PickupPostalLocAddDays><DeliveryPostalLocAddDays>0</DeliveryPostalLocAddDays><PickupNonDHLCourierCode> </PickupNonDHLCourierCode><DeliveryNonDHLCourierCode> </DeliveryNonDHLCourierCode><DeliveryDate>2017-02-14</DeliveryDate><DeliveryTime>PT23H59M</DeliveryTime><DimensionalWeight>0.150</DimensionalWeight><WeightUnit>KG</WeightUnit><PickupDayOfWeekNum>1</PickupDayOfWeekNum><DestinationDayOfWeekNum>2</DestinationDayOfWeekNum><QtdShpExChrg><SpecialServiceType>FF</SpecialServiceType><LocalServiceType>FF</LocalServiceType><GlobalServiceName>FUEL SURCHARGE</GlobalServiceName><LocalServiceTypeName>FUEL SURCHARGE</LocalServiceTypeName><ChargeCodeType>SCH</ChargeCodeType><CurrencyCode>CNY</CurrencyCode><ChargeValue>44.100</ChargeValue><QtdSExtrChrgInAdCur><ChargeValue>44.100</ChargeValue><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>BILLC</CurrencyRoleTypeCode></QtdSExtrChrgInAdCur><QtdSExtrChrgInAdCur><ChargeValue>44.100</ChargeValue><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>PULCL</CurrencyRoleTypeCode></QtdSExtrChrgInAdCur><QtdSExtrChrgInAdCur><ChargeValue>6.450</ChargeValue><CurrencyCode>USD</CurrencyCode><CurrencyRoleTypeCode>BASEC</CurrencyRoleTypeCode></QtdSExtrChrgInAdCur></QtdShpExChrg><PricingDate>2017-02-12</PricingDate><ShippingCharge>396.900</ShippingCharge><TotalTaxAmount>0.000</TotalTaxAmount><QtdSInAdCur><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>BILLC</CurrencyRoleTypeCode><WeightCharge>352.800</WeightCharge><TotalAmount>396.900</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>PULCL</CurrencyRoleTypeCode><WeightCharge>352.800</WeightCharge><TotalAmount>396.900</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>USD</CurrencyCode><CurrencyRoleTypeCode>BASEC</CurrencyRoleTypeCode><WeightCharge>51.570</WeightCharge><TotalAmount>58.010</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur></QtdShp><QtdShp><GlobalProductCode>P</GlobalProductCode><LocalProductCode>P</LocalProductCode><ProductShortName>EXPRESS WORLDWIDE</ProductShortName><LocalProductName>EXPRESS WORLDWIDE NONDOC</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>N</POfferedCustAgreement><TransInd>Y</TransInd><PickupDate>2017-02-13</PickupDate><PickupCutoffTime>PT18H</PickupCutoffTime><BookingTime>PT16H</BookingTime><CurrencyCode>CNY</CurrencyCode><ExchangeRate>0.146167</ExchangeRate><WeightCharge>205.800</WeightCharge><WeightChargeTax>0.000</WeightChargeTax><TotalTransitDays>1</TotalTransitDays><PickupPostalLocAddDays>0</PickupPostalLocAddDays><DeliveryPostalLocAddDays>0</DeliveryPostalLocAddDays><PickupNonDHLCourierCode> </PickupNonDHLCourierCode><DeliveryNonDHLCourierCode> </DeliveryNonDHLCourierCode><DeliveryDate>2017-02-14</DeliveryDate><DeliveryTime>PT23H59M</DeliveryTime><DimensionalWeight>0.150</DimensionalWeight><WeightUnit>KG</WeightUnit><PickupDayOfWeekNum>1</PickupDayOfWeekNum><DestinationDayOfWeekNum>2</DestinationDayOfWeekNum><QtdShpExChrg><SpecialServiceType>FF</SpecialServiceType><LocalServiceType>FF</LocalServiceType><GlobalServiceName>FUEL SURCHARGE</GlobalServiceName><LocalServiceTypeName>FUEL SURCHARGE</LocalServiceTypeName><ChargeCodeType>SCH</ChargeCodeType><CurrencyCode>CNY</CurrencyCode><ChargeValue>25.730</ChargeValue><QtdSExtrChrgInAdCur><ChargeValue>25.730</ChargeValue><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>BILLC</CurrencyRoleTypeCode></QtdSExtrChrgInAdCur><QtdSExtrChrgInAdCur><ChargeValue>25.730</ChargeValue><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>PULCL</CurrencyRoleTypeCode></QtdSExtrChrgInAdCur><QtdSExtrChrgInAdCur><ChargeValue>3.760</ChargeValue><CurrencyCode>USD</CurrencyCode><CurrencyRoleTypeCode>BASEC</CurrencyRoleTypeCode></QtdSExtrChrgInAdCur></QtdShpExChrg><PricingDate>2017-02-12</PricingDate><ShippingCharge>231.530</ShippingCharge><TotalTaxAmount>0.000</TotalTaxAmount><QtdSInAdCur><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>BILLC</CurrencyRoleTypeCode><WeightCharge>205.800</WeightCharge><TotalAmount>231.530</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>PULCL</CurrencyRoleTypeCode><WeightCharge>205.800</WeightCharge><TotalAmount>231.530</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>USD</CurrencyCode><CurrencyRoleTypeCode>BASEC</CurrencyRoleTypeCode><WeightCharge>30.080</WeightCharge><TotalAmount>33.840</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur></QtdShp><QtdShp><GlobalProductCode>8</GlobalProductCode><LocalProductCode>8</LocalProductCode><ProductShortName>EXPRESS EASY</ProductShortName><LocalProductName>EXPRESS EASY NONDOC</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>Y</POfferedCustAgreement><TransInd>N</TransInd><PickupDate>2017-02-13</PickupDate><PickupCutoffTime>PT18H</PickupCutoffTime><BookingTime>PT16H</BookingTime><CurrencyCode>CNY</CurrencyCode><ExchangeRate>0.146167</ExchangeRate><WeightCharge>379.000</WeightCharge><WeightChargeTax>0.000</WeightChargeTax><TotalTransitDays>1</TotalTransitDays><PickupPostalLocAddDays>0</PickupPostalLocAddDays><DeliveryPostalLocAddDays>0</DeliveryPostalLocAddDays><PickupNonDHLCourierCode> </PickupNonDHLCourierCode><DeliveryNonDHLCourierCode> </DeliveryNonDHLCourierCode><DeliveryDate>2017-02-14</DeliveryDate><DeliveryTime>PT23H59M</DeliveryTime><DimensionalWeight>0.150</DimensionalWeight><WeightUnit>KG</WeightUnit><PickupDayOfWeekNum>1</PickupDayOfWeekNum><DestinationDayOfWeekNum>2</DestinationDayOfWeekNum><QtdShpExChrg><SpecialServiceType>FF</SpecialServiceType><LocalServiceType>FF</LocalServiceType><GlobalServiceName>FUEL SURCHARGE</GlobalServiceName><LocalServiceTypeName>FUEL SURCHARGE</LocalServiceTypeName><ChargeCodeType>SCH</ChargeCodeType><CurrencyCode>CNY</CurrencyCode><ChargeValue>0.000</ChargeValue><QtdSExtrChrgInAdCur><ChargeValue>0.000</ChargeValue><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>BILLC</CurrencyRoleTypeCode></QtdSExtrChrgInAdCur><QtdSExtrChrgInAdCur><ChargeValue>0.000</ChargeValue><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>PULCL</CurrencyRoleTypeCode></QtdSExtrChrgInAdCur><QtdSExtrChrgInAdCur><ChargeValue>0.000</ChargeValue><CurrencyCode>USD</CurrencyCode><CurrencyRoleTypeCode>BASEC</CurrencyRoleTypeCode></QtdSExtrChrgInAdCur></QtdShpExChrg><PricingDate>2017-02-12</PricingDate><ShippingCharge>379.000</ShippingCharge><TotalTaxAmount>0.000</TotalTaxAmount><QtdSInAdCur><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>BILLC</CurrencyRoleTypeCode><WeightCharge>379.000</WeightCharge><TotalAmount>379.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>PULCL</CurrencyRoleTypeCode><WeightCharge>379.000</WeightCharge><TotalAmount>379.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>USD</CurrencyCode><CurrencyRoleTypeCode>BASEC</CurrencyRoleTypeCode><WeightCharge>55.400</WeightCharge><TotalAmount>55.400</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur></QtdShp><QtdShp><GlobalProductCode>P</GlobalProductCode><LocalProductCode>P</LocalProductCode><ProductShortName>EXPRESS WORLDWIDE</ProductShortName><LocalProductName>EXPRESS WORLDWIDE NONDOC</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>N</POfferedCustAgreement><TransInd>Y</TransInd><PickupDate>2017-02-13</PickupDate><PickupCutoffTime>PT20H</PickupCutoffTime><BookingTime>PT18H</BookingTime><CurrencyCode>CNY</CurrencyCode><ExchangeRate>0.146167</ExchangeRate><WeightCharge>205.800</WeightCharge><WeightChargeTax>0.000</WeightChargeTax><TotalTransitDays>2</TotalTransitDays><PickupPostalLocAddDays>0</PickupPostalLocAddDays><DeliveryPostalLocAddDays>0</DeliveryPostalLocAddDays><PickupNonDHLCourierCode> </PickupNonDHLCourierCode><DeliveryNonDHLCourierCode> </DeliveryNonDHLCourierCode><DeliveryDate>2017-02-15</DeliveryDate><DeliveryTime>PT23H59M</DeliveryTime><DimensionalWeight>0.150</DimensionalWeight><WeightUnit>KG</WeightUnit><PickupDayOfWeekNum>1</PickupDayOfWeekNum><DestinationDayOfWeekNum>3</DestinationDayOfWeekNum><QtdShpExChrg><SpecialServiceType>FF</SpecialServiceType><LocalServiceType>FF</LocalServiceType><GlobalServiceName>FUEL SURCHARGE</GlobalServiceName><LocalServiceTypeName>FUEL SURCHARGE</LocalServiceTypeName><ChargeCodeType>SCH</ChargeCodeType><CurrencyCode>CNY</CurrencyCode><ChargeValue>25.730</ChargeValue><QtdSExtrChrgInAdCur><ChargeValue>25.730</ChargeValue><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>BILLC</CurrencyRoleTypeCode></QtdSExtrChrgInAdCur><QtdSExtrChrgInAdCur><ChargeValue>25.730</ChargeValue><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>PULCL</CurrencyRoleTypeCode></QtdSExtrChrgInAdCur><QtdSExtrChrgInAdCur><ChargeValue>3.760</ChargeValue><CurrencyCode>USD</CurrencyCode><CurrencyRoleTypeCode>BASEC</CurrencyRoleTypeCode></QtdSExtrChrgInAdCur></QtdShpExChrg><PricingDate>2017-02-12</PricingDate><ShippingCharge>231.530</ShippingCharge><TotalTaxAmount>0.000</TotalTaxAmount><QtdSInAdCur><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>BILLC</CurrencyRoleTypeCode><WeightCharge>205.800</WeightCharge><TotalAmount>231.530</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>PULCL</CurrencyRoleTypeCode><WeightCharge>205.800</WeightCharge><TotalAmount>231.530</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>USD</CurrencyCode><CurrencyRoleTypeCode>BASEC</CurrencyRoleTypeCode><WeightCharge>30.080</WeightCharge><TotalAmount>33.840</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur></QtdShp><QtdShp><GlobalProductCode>8</GlobalProductCode><LocalProductCode>8</LocalProductCode><ProductShortName>EXPRESS EASY</ProductShortName><LocalProductName>EXPRESS EASY NONDOC</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>Y</POfferedCustAgreement><TransInd>N</TransInd><PickupDate>2017-02-13</PickupDate><PickupCutoffTime>PT20H</PickupCutoffTime><BookingTime>PT18H</BookingTime><CurrencyCode>CNY</CurrencyCode><ExchangeRate>0.146167</ExchangeRate><WeightCharge>379.000</WeightCharge><WeightChargeTax>0.000</WeightChargeTax><TotalTransitDays>2</TotalTransitDays><PickupPostalLocAddDays>0</PickupPostalLocAddDays><DeliveryPostalLocAddDays>0</DeliveryPostalLocAddDays><PickupNonDHLCourierCode> </PickupNonDHLCourierCode><DeliveryNonDHLCourierCode> </DeliveryNonDHLCourierCode><DeliveryDate>2017-02-15</DeliveryDate><DeliveryTime>PT23H59M</DeliveryTime><DimensionalWeight>0.150</DimensionalWeight><WeightUnit>KG</WeightUnit><PickupDayOfWeekNum>1</PickupDayOfWeekNum><DestinationDayOfWeekNum>3</DestinationDayOfWeekNum><QtdShpExChrg><SpecialServiceType>FF</SpecialServiceType><LocalServiceType>FF</LocalServiceType><GlobalServiceName>FUEL SURCHARGE</GlobalServiceName><LocalServiceTypeName>FUEL SURCHARGE</LocalServiceTypeName><ChargeCodeType>SCH</ChargeCodeType><CurrencyCode>CNY</CurrencyCode><ChargeValue>0.000</ChargeValue><QtdSExtrChrgInAdCur><ChargeValue>0.000</ChargeValue><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>BILLC</CurrencyRoleTypeCode></QtdSExtrChrgInAdCur><QtdSExtrChrgInAdCur><ChargeValue>0.000</ChargeValue><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>PULCL</CurrencyRoleTypeCode></QtdSExtrChrgInAdCur><QtdSExtrChrgInAdCur><ChargeValue>0.000</ChargeValue><CurrencyCode>USD</CurrencyCode><CurrencyRoleTypeCode>BASEC</CurrencyRoleTypeCode></QtdSExtrChrgInAdCur></QtdShpExChrg><PricingDate>2017-02-12</PricingDate><ShippingCharge>379.000</ShippingCharge><TotalTaxAmount>0.000</TotalTaxAmount><QtdSInAdCur><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>BILLC</CurrencyRoleTypeCode><WeightCharge>379.000</WeightCharge><TotalAmount>379.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>PULCL</CurrencyRoleTypeCode><WeightCharge>379.000</WeightCharge><TotalAmount>379.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>USD</CurrencyCode><CurrencyRoleTypeCode>BASEC</CurrencyRoleTypeCode><WeightCharge>55.400</WeightCharge><TotalAmount>55.400</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur></QtdShp></BkgDetails><Srvs><Srv><GlobalProductCode>Q</GlobalProductCode><MrkSrv><LocalProductCode>Q</LocalProductCode><ProductShortName>MEDICAL EXPRESS</ProductShortName><LocalProductName>MEDICAL EXPRESS</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>Y</POfferedCustAgreement><TransInd>N</TransInd></MrkSrv><MrkSrv><LocalServiceType>FF</LocalServiceType><GlobalServiceName>FUEL SURCHARGE</GlobalServiceName><LocalServiceTypeName>FUEL SURCHARGE</LocalServiceTypeName><ChargeCodeType>SCH</ChargeCodeType><MrkSrvInd>N</MrkSrvInd></MrkSrv></Srv><Srv><GlobalProductCode>P</GlobalProductCode><MrkSrv><LocalProductCode>P</LocalProductCode><ProductShortName>EXPRESS WORLDWIDE</ProductShortName><LocalProductName>EXPRESS WORLDWIDE NONDOC</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>N</POfferedCustAgreement><TransInd>Y</TransInd></MrkSrv><MrkSrv><LocalServiceType>FF</LocalServiceType><GlobalServiceName>FUEL SURCHARGE</GlobalServiceName><LocalServiceTypeName>FUEL SURCHARGE</LocalServiceTypeName><ChargeCodeType>SCH</ChargeCodeType><MrkSrvInd>N</MrkSrvInd></MrkSrv></Srv><Srv><GlobalProductCode>8</GlobalProductCode><MrkSrv><LocalProductCode>8</LocalProductCode><ProductShortName>EXPRESS EASY</ProductShortName><LocalProductName>EXPRESS EASY NONDOC</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>Y</POfferedCustAgreement><TransInd>N</TransInd></MrkSrv><MrkSrv><LocalServiceType>FF</LocalServiceType><GlobalServiceName>FUEL SURCHARGE</GlobalServiceName><LocalServiceTypeName>FUEL SURCHARGE</LocalServiceTypeName><ChargeCodeType>SCH</ChargeCodeType><MrkSrvInd>N</MrkSrvInd></MrkSrv></Srv></Srvs></GetQuoteResponse></res:DCTResponse>Forum: Plugins
In reply to: [DHL WooCommerce Shipping Method] DHL as Shipping MethodNi, I didn’t get what you said about live server.
Where I “switch” to live?
In contact with the DHL China, they send-me a linke to https://xmlpi-ea.dhl.com/, wheres there a developer manual to xml and stuff. But ain’t site name and password, or even talked about that.
So today I’ll be testing it as it was again. If it dont work, what you mean by “switch to live”, please?
It has been tree weeks since I’m trying to setup this plugin.
Forum: Plugins
In reply to: [DHL WooCommerce Shipping Method] DHL as Shipping MethodHey Elvin.
Were trying to create this Site Id and Password, but the China DHL representants dont know nothing about it.
Anyway, using the Test Site ID and Pass provided by Wooforce, this is what is returning on shipping calculator.
No prices, rates or shipping methods are displaying.
<?xml version="1.0" encoding="UTF-8" standalone="no"?><res:DCTResponse xmlns:res='http://www.dhl.com' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation= 'http://www.dhl.com DCT-Response.xsd'><GetQuoteResponse><Response><ServiceHeader><MessageTime>2017-01-20T13:41:14.339+01:00</MessageTime><MessageReference>1234567890123456789012345678901</MessageReference><SiteID>CIMGBTest</SiteID></ServiceHeader></Response><BkgDetails><OriginServiceArea><FacilityCode>SZS</FacilityCode><ServiceAreaCode>SZX</ServiceAreaCode></OriginServiceArea><DestinationServiceArea><FacilityCode>MKE</FacilityCode><ServiceAreaCode>MKE</ServiceAreaCode></DestinationServiceArea><QtdShp><GlobalProductCode>8</GlobalProductCode><LocalProductCode>8</LocalProductCode><ProductShortName>EXPRESS EASY</ProductShortName><LocalProductName>EXPRESS EASY NONDOC</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>Y</POfferedCustAgreement><TransInd>N</TransInd><PickupDate>2017-01-20</PickupDate><PickupCutoffTime>PT20H</PickupCutoffTime><BookingTime>PT18H</BookingTime><ExchangeRate>1.000000</ExchangeRate><WeightCharge>0</WeightCharge><WeightChargeTax>0.000</WeightChargeTax><TotalTransitDays>3</TotalTransitDays><PickupPostalLocAddDays>0</PickupPostalLocAddDays><DeliveryPostalLocAddDays>2</DeliveryPostalLocAddDays><PickupNonDHLCourierCode> </PickupNonDHLCourierCode><DeliveryNonDHLCourierCode> </DeliveryNonDHLCourierCode><DeliveryDate>2017-01-25</DeliveryDate><DeliveryTime>PT23H59M</DeliveryTime><DimensionalWeight>0.150</DimensionalWeight><WeightUnit>KG</WeightUnit><PickupDayOfWeekNum>5</PickupDayOfWeekNum><DestinationDayOfWeekNum>3</DestinationDayOfWeekNum><PricingDate>2017-01-20</PricingDate><ShippingCharge>0.000</ShippingCharge><TotalTaxAmount>0.000</TotalTaxAmount><QtdSInAdCur><CurrencyRoleTypeCode>BILLC</CurrencyRoleTypeCode><WeightCharge>0</WeightCharge><TotalAmount>0.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>PULCL</CurrencyRoleTypeCode><WeightCharge>0</WeightCharge><TotalAmount>0.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>USD</CurrencyCode><CurrencyRoleTypeCode>BASEC</CurrencyRoleTypeCode><WeightCharge>0</WeightCharge><TotalAmount>0.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur></QtdShp><QtdShp><GlobalProductCode>P</GlobalProductCode><LocalProductCode>P</LocalProductCode><ProductShortName>EXPRESS WORLDWIDE</ProductShortName><LocalProductName>EXPRESS WORLDWIDE NONDOC</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>N</POfferedCustAgreement><TransInd>Y</TransInd><PickupDate>2017-01-20</PickupDate><PickupCutoffTime>PT20H</PickupCutoffTime><BookingTime>PT18H</BookingTime><ExchangeRate>1.000000</ExchangeRate><WeightCharge>0</WeightCharge><WeightChargeTax>0.000</WeightChargeTax><TotalTransitDays>3</TotalTransitDays><PickupPostalLocAddDays>0</PickupPostalLocAddDays><DeliveryPostalLocAddDays>2</DeliveryPostalLocAddDays><PickupNonDHLCourierCode> </PickupNonDHLCourierCode><DeliveryNonDHLCourierCode> </DeliveryNonDHLCourierCode><DeliveryDate>2017-01-25</DeliveryDate><DeliveryTime>PT23H59M</DeliveryTime><DimensionalWeight>0.150</DimensionalWeight><WeightUnit>KG</WeightUnit><PickupDayOfWeekNum>5</PickupDayOfWeekNum><DestinationDayOfWeekNum>3</DestinationDayOfWeekNum><PricingDate>2017-01-20</PricingDate><ShippingCharge>0.000</ShippingCharge><TotalTaxAmount>0.000</TotalTaxAmount><QtdSInAdCur><CurrencyRoleTypeCode>BILLC</CurrencyRoleTypeCode><WeightCharge>0</WeightCharge><TotalAmount>0.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>PULCL</CurrencyRoleTypeCode><WeightCharge>0</WeightCharge><TotalAmount>0.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>USD</CurrencyCode><CurrencyRoleTypeCode>BASEC</CurrencyRoleTypeCode><WeightCharge>0</WeightCharge><TotalAmount>0.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur></QtdShp><QtdShp><GlobalProductCode>Q</GlobalProductCode><LocalProductCode>Q</LocalProductCode><ProductShortName>MEDICAL EXPRESS</ProductShortName><LocalProductName>MEDICAL EXPRESS</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>Y</POfferedCustAgreement><TransInd>N</TransInd><PickupDate>2017-01-20</PickupDate><PickupCutoffTime>PT20H</PickupCutoffTime><BookingTime>PT18H</BookingTime><ExchangeRate>1.000000</ExchangeRate><WeightCharge>0</WeightCharge><WeightChargeTax>0.000</WeightChargeTax><TotalTransitDays>3</TotalTransitDays><PickupPostalLocAddDays>0</PickupPostalLocAddDays><DeliveryPostalLocAddDays>2</DeliveryPostalLocAddDays><PickupNonDHLCourierCode> </PickupNonDHLCourierCode><DeliveryNonDHLCourierCode> </DeliveryNonDHLCourierCode><DeliveryDate>2017-01-25</DeliveryDate><DeliveryTime>PT23H59M</DeliveryTime><DimensionalWeight>0.150</DimensionalWeight><WeightUnit>KG</WeightUnit><PickupDayOfWeekNum>5</PickupDayOfWeekNum><DestinationDayOfWeekNum>3</DestinationDayOfWeekNum><PricingDate>2017-01-20</PricingDate><ShippingCharge>0.000</ShippingCharge><TotalTaxAmount>0.000</TotalTaxAmount><QtdSInAdCur><CurrencyRoleTypeCode>BILLC</CurrencyRoleTypeCode><WeightCharge>0</WeightCharge><TotalAmount>0.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>PULCL</CurrencyRoleTypeCode><WeightCharge>0</WeightCharge><TotalAmount>0.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>USD</CurrencyCode><CurrencyRoleTypeCode>BASEC</CurrencyRoleTypeCode><WeightCharge>0</WeightCharge><TotalAmount>0.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur></QtdShp></BkgDetails><Srvs><Srv><GlobalProductCode>8</GlobalProductCode><MrkSrv><LocalProductCode>8</LocalProductCode><ProductShortName>EXPRESS EASY</ProductShortName><LocalProductName>EXPRESS EASY NONDOC</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>Y</POfferedCustAgreement><TransInd>N</TransInd></MrkSrv></Srv><Srv><GlobalProductCode>P</GlobalProductCode><MrkSrv><LocalProductCode>P</LocalProductCode><ProductShortName>EXPRESS WORLDWIDE</ProductShortName><LocalProductName>EXPRESS WORLDWIDE NONDOC</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>N</POfferedCustAgreement><TransInd>Y</TransInd></MrkSrv></Srv><Srv><GlobalProductCode>Q</GlobalProductCode><MrkSrv><LocalProductCode>Q</LocalProductCode><ProductShortName>MEDICAL EXPRESS</ProductShortName><LocalProductName>MEDICAL EXPRESS</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>Y</POfferedCustAgreement><TransInd>N</TransInd></MrkSrv></Srv></Srvs></GetQuoteResponse></res:DCTResponse>Forum: Plugins
In reply to: [DHL WooCommerce Shipping Method] DHL as Shipping MethodWhat do you think? Its because I’m using CIMGBTest?
Or its a matter with the Account number?
What should I ask for DHL?
Forum: Plugins
In reply to: [DHL WooCommerce Shipping Method] DHL as Shipping MethodI’ve changed Store Base location, in Woocommerce Setings…
now, the response returns something different, but nothing changes on the shipping prices and methods at the shipping calculator..
<?xml version="1.0" encoding="UTF-8" standalone="no"?><res:DCTResponse xmlns:res='http://www.dhl.com' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xsi:schemaLocation= 'http://www.dhl.com DCT-Response.xsd'><GetQuoteResponse><Response><ServiceHeader><MessageTime>2017-01-16T18:15:23.526+01:00</MessageTime><MessageReference>1234567890123456789012345678901</MessageReference><SiteID>CIMGBTest</SiteID></ServiceHeader></Response><BkgDetails><OriginServiceArea><FacilityCode>SZS</FacilityCode><ServiceAreaCode>SZX</ServiceAreaCode></OriginServiceArea><DestinationServiceArea><FacilityCode>NOC</FacilityCode><ServiceAreaCode>PEK</ServiceAreaCode></DestinationServiceArea><QtdShp><GlobalProductCode>G</GlobalProductCode><LocalProductCode>G</LocalProductCode><ProductShortName>ECONOMY SELECT DOMESTIC</ProductShortName><LocalProductName>ECONOMY SELECT DOMESTIC</LocalProductName><NetworkTypeCode>DD</NetworkTypeCode><POfferedCustAgreement>Y</POfferedCustAgreement><TransInd>N</TransInd><PickupDate>2017-01-16</PickupDate><PickupCutoffTime>PT14H30M</PickupCutoffTime><BookingTime>PT12H30M</BookingTime><ExchangeRate>1.000000</ExchangeRate><WeightCharge>0</WeightCharge><WeightChargeTax>0.000</WeightChargeTax><TotalTransitDays>3</TotalTransitDays><PickupPostalLocAddDays>0</PickupPostalLocAddDays><DeliveryPostalLocAddDays>0</DeliveryPostalLocAddDays><PickupNonDHLCourierCode> </PickupNonDHLCourierCode><DeliveryNonDHLCourierCode> </DeliveryNonDHLCourierCode><DeliveryDate>2017-01-19</DeliveryDate><DeliveryTime>PT23H59M</DeliveryTime><DimensionalWeight>0.150</DimensionalWeight><WeightUnit>KG</WeightUnit><PickupDayOfWeekNum>1</PickupDayOfWeekNum><DestinationDayOfWeekNum>4</DestinationDayOfWeekNum><PricingDate>2017-01-16</PricingDate><ShippingCharge>0.000</ShippingCharge><TotalTaxAmount>0.000</TotalTaxAmount><QtdSInAdCur><CurrencyRoleTypeCode>BILLC</CurrencyRoleTypeCode><WeightCharge>0</WeightCharge><TotalAmount>0.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>PULCL</CurrencyRoleTypeCode><WeightCharge>0</WeightCharge><TotalAmount>0.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>USD</CurrencyCode><CurrencyRoleTypeCode>BASEC</CurrencyRoleTypeCode><WeightCharge>0</WeightCharge><TotalAmount>0.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur></QtdShp><QtdShp><GlobalProductCode>7</GlobalProductCode><LocalProductCode>7</LocalProductCode><ProductShortName>EXPRESS EASY</ProductShortName><LocalProductName>EXPRESS EASY</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>Y</POfferedCustAgreement><TransInd>N</TransInd><PickupDate>2017-01-16</PickupDate><PickupCutoffTime>PT14H30M</PickupCutoffTime><BookingTime>PT12H30M</BookingTime><ExchangeRate>1.000000</ExchangeRate><WeightCharge>0</WeightCharge><WeightChargeTax>0.000</WeightChargeTax><TotalTransitDays>2</TotalTransitDays><PickupPostalLocAddDays>0</PickupPostalLocAddDays><DeliveryPostalLocAddDays>0</DeliveryPostalLocAddDays><PickupNonDHLCourierCode> </PickupNonDHLCourierCode><DeliveryNonDHLCourierCode> </DeliveryNonDHLCourierCode><DeliveryDate>2017-01-18</DeliveryDate><DeliveryTime>PT23H59M</DeliveryTime><DimensionalWeight>0.150</DimensionalWeight><WeightUnit>KG</WeightUnit><PickupDayOfWeekNum>1</PickupDayOfWeekNum><DestinationDayOfWeekNum>3</DestinationDayOfWeekNum><PricingDate>2017-01-16</PricingDate><ShippingCharge>0.000</ShippingCharge><TotalTaxAmount>0.000</TotalTaxAmount><QtdSInAdCur><CurrencyRoleTypeCode>BILLC</CurrencyRoleTypeCode><WeightCharge>0</WeightCharge><TotalAmount>0.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>PULCL</CurrencyRoleTypeCode><WeightCharge>0</WeightCharge><TotalAmount>0.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>USD</CurrencyCode><CurrencyRoleTypeCode>BASEC</CurrencyRoleTypeCode><WeightCharge>0</WeightCharge><TotalAmount>0.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur></QtdShp><QtdShp><GlobalProductCode>N</GlobalProductCode><LocalProductCode>N</LocalProductCode><ProductShortName>EXPRESS DOMESTIC</ProductShortName><LocalProductName>EXPRESS DOMESTIC</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>N</POfferedCustAgreement><TransInd>Y</TransInd><PickupDate>2017-01-16</PickupDate><PickupCutoffTime>PT14H30M</PickupCutoffTime><BookingTime>PT12H30M</BookingTime><ExchangeRate>1.000000</ExchangeRate><WeightCharge>0</WeightCharge><WeightChargeTax>0.000</WeightChargeTax><TotalTransitDays>2</TotalTransitDays><PickupPostalLocAddDays>0</PickupPostalLocAddDays><DeliveryPostalLocAddDays>0</DeliveryPostalLocAddDays><PickupNonDHLCourierCode> </PickupNonDHLCourierCode><DeliveryNonDHLCourierCode> </DeliveryNonDHLCourierCode><DeliveryDate>2017-01-18</DeliveryDate><DeliveryTime>PT23H59M</DeliveryTime><DimensionalWeight>0.150</DimensionalWeight><WeightUnit>KG</WeightUnit><PickupDayOfWeekNum>1</PickupDayOfWeekNum><DestinationDayOfWeekNum>3</DestinationDayOfWeekNum><PricingDate>2017-01-16</PricingDate><ShippingCharge>0.000</ShippingCharge><TotalTaxAmount>0.000</TotalTaxAmount><QtdSInAdCur><CurrencyRoleTypeCode>BILLC</CurrencyRoleTypeCode><WeightCharge>0</WeightCharge><TotalAmount>0.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>CNY</CurrencyCode><CurrencyRoleTypeCode>PULCL</CurrencyRoleTypeCode><WeightCharge>0</WeightCharge><TotalAmount>0.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur><QtdSInAdCur><CurrencyCode>USD</CurrencyCode><CurrencyRoleTypeCode>BASEC</CurrencyRoleTypeCode><WeightCharge>0</WeightCharge><TotalAmount>0.000</TotalAmount><TotalTaxAmount>0.000</TotalTaxAmount><WeightChargeTax>0.000</WeightChargeTax></QtdSInAdCur></QtdShp></BkgDetails><Srvs><Srv><GlobalProductCode>G</GlobalProductCode><MrkSrv><LocalProductCode>G</LocalProductCode><ProductShortName>ECONOMY SELECT DOMESTIC</ProductShortName><LocalProductName>ECONOMY SELECT DOMESTIC</LocalProductName><NetworkTypeCode>DD</NetworkTypeCode><POfferedCustAgreement>Y</POfferedCustAgreement><TransInd>N</TransInd></MrkSrv></Srv><Srv><GlobalProductCode>7</GlobalProductCode><MrkSrv><LocalProductCode>7</LocalProductCode><ProductShortName>EXPRESS EASY</ProductShortName><LocalProductName>EXPRESS EASY</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>Y</POfferedCustAgreement><TransInd>N</TransInd></MrkSrv></Srv><Srv><GlobalProductCode>N</GlobalProductCode><MrkSrv><LocalProductCode>N</LocalProductCode><ProductShortName>EXPRESS DOMESTIC</ProductShortName><LocalProductName>EXPRESS DOMESTIC</LocalProductName><NetworkTypeCode>TD</NetworkTypeCode><POfferedCustAgreement>N</POfferedCustAgreement><TransInd>Y</TransInd></MrkSrv></Srv></Srvs></GetQuoteResponse></res:DCTResponse>Forum: Plugins
In reply to: [DHL WooCommerce Shipping Method] DHL as Shipping MethodI cant understand…
The Postal Code from our deposit on China is: 518106
But the code that plugin send to DHL is:
?xml version="1.0" encoding="UTF-8"?> <p:DCTRequest xmlns:p="http://www.dhl.com" xmlns:p1="http://www.dhl.com/datatypes" xmlns:p2="http://www.dhl.com/DCTRequestdatatypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dhl.com DCT-req.xsd "> <GetQuote> <Request> <ServiceHeader> <MessageTime>2017-01-16T17:02:15</MessageTime> <MessageReference>1234567890123456789012345678901</MessageReference> <SiteID>CIMGBTest</SiteID> <Password>DLUntOcJma</Password> </ServiceHeader> </Request> <From> <CountryCode>BR</CountryCode> <Postalcode>518106</Postalcode> </From> <BkgDetails> <PaymentCountryCode>BR</PaymentCountryCode> <Date>2017-01-16</Date> <ReadyTime>PT10H21M</ReadyTime> <DimensionUnit>CM</DimensionUnit> <WeightUnit>KG</WeightUnit> <Pieces> <Piece><PieceID>1</PieceID><PackageTypeCode>BOX</PackageTypeCode><Height>4</Height><Depth>7</Depth><Width>7</Width><Weight>0.15</Weight></Piece> </Pieces> <IsDutiable>Y</IsDutiable> <NetworkTypeCode>AL</NetworkTypeCode> <InsuredValue>20</InsuredValue><InsuredCurrency>BRL</InsuredCurrency> </BkgDetails> <To> <CountryCode>US</CountryCode> <Postalcode>87107</Postalcode> </To> <Dutiable><DeclaredCurrency>BRL</DeclaredCurrency><DeclaredValue>20</DeclaredValue></Dutiable> </GetQuote> </p:DCTRequest>As I can see, the problem is that the PostCode from shipper is being sent as Brasil, but its China…
Maybe it can be the error???
I’m really in trouble to set it up!!!
Forum: Plugins
In reply to: [Claudio Sanches - Correios for WooCommerce] Resultado em dólaresFuncionou!
O código ficou assim:
function my_wc_custom_correios_price( $rate, $instance_id, $package ) { $rate['cost'] = $rate['cost'] / 3.2; return $rate; } add_filter( 'woocommerce_correios_correios-pac_rate', 'my_wc_custom_correios_price', 10, 3 ); add_filter( 'woocommerce_correios_correios-sedex_rate', 'my_wc_custom_correios_price', 10, 3 );Forum: Plugins
In reply to: [Claudio Sanches - Correios for WooCommerce] Resultado em dólaresConsegui fazer funcionar a conversão, muito obrigado Claudio!!!
Porém não entendo como eu adiciono o filtro para SEDEX, ou outras formas de envio, e também não entendi a funcionalidade do 10, 3 na linha add_filter.
O que entendi é que devo encontrar o {$method_id} e inserir entre woocommerce_correios_ e _rate, isto dentro de add_filter.
Acredito que os method_id sejam$methods['correios-pac'] = 'WC_Correios_Shipping_PAC'; $methods['correios-sedex'] = 'WC_Correios_Shipping_SEDEX'; $methods['correios-sedex10-envelope'] = 'WC_Correios_Shipping_SEDEX_10_Envelope'; $methods['correios-sedex10-pacote'] = 'WC_Correios_Shipping_SEDEX_10_Pacote'; $methods['correios-sedex12'] = 'WC_Correios_Shipping_SEDEX_12'; $methods['correios-sedex-hoje'] = 'WC_Correios_Shipping_SEDEX_Hoje'; $methods['correios-esedex'] = 'WC_Correios_Shipping_ESEDEX'; $methods['correios-carta-registrada'] = 'WC_Correios_Shipping_Carta_Registrada'; $methods['correios-impresso-normal'] = 'WC_Correios_Shipping_Impresso_Normal'; $methods['correios-impresso-urgente'] = 'WC_Correios_Shipping_Impresso_Urgente'; $methods['correios-mercadoria-expressa'] = 'WC_Correios_Shipping_Mercadoria_Expressa'; $methods['correios-mercadoria-economica'] = 'WC_Correios_Shipping_Mercadoria_Economica'; $methods['correios-leve-internacional'] = 'WC_Correios_Shipping_Leve_Internacional';Muito obrigado pelo suporte, pessoas como você são iluminadas!
Forum: Plugins
In reply to: [Claudio Sanches - Correios for WooCommerce] Resultado em dólaresClaudio, entendi a funcionalidade do código que tu me passou acima… Só não entendi aonde que devo inserir o filtro
woocommerce_correios_{$method_id}_rateA parte
function my_wc_custom_correios_price( $rate, $instance_id, $package ) { $rate['cost'] = $rate['cost'] / 3.4; return $rate; } add_filter( 'woocommerce_correios_correios-pac_rate', 'my_wc_custom_correios_price', 10, 3 );devo inserir no arquivo wc-correios-functions.php certo?
desculpe a ignorância, mas se puder me dizer aonde colocar a function e onde posso chamar o filtro, te agradeço demais!
- This reply was modified 9 years, 4 months ago by oppala.
- This reply was modified 9 years, 4 months ago by oppala.
- This reply was modified 9 years, 4 months ago by oppala.
- This reply was modified 9 years, 4 months ago by Jan Dembowski.
- This reply was modified 9 years, 4 months ago by Jan Dembowski.
Forum: Plugins
In reply to: [Claudio Sanches - Correios for WooCommerce] Resultado em dólaresOu então, a solução seria realmente dividir o valor resultado do plugin por 3,4… Aí o Multi Currency Suite faz a conversão para o valor em reais…
Forum: Plugins
In reply to: [Claudio Sanches - Correios for WooCommerce] Resultado em dólaresTalvez, se o plugin dos correios apenas retornar o valor do frete precedido de R$, talvez, o Multi Currency Suite não faça a conversão…
Tem alguma maneira de adicionar o R$, apenas pra fazer esse primeiro teste, através da edição das páginas php do plugin?
Estou desde ontem mirabolando alguma solução.. Preciso muito que funcione com o valor de frete correto…