Shipping method not found

  • Posts: 29
  • Thank you received: 1
3 months 3 weeks ago #287239

-- url of the page with the problem -- : umbandaexplica.com.br/loja
-- HikaShop version -- : 3.2.2
-- Error-message(debug-mod must be tuned on) -- : Shipping method not found

I'm trying to implement the "Correios (Brazil)" plugin - shipping method - but it does not appear in the cart (checkout).

Only "No shipping method available" appears. Both the plugin and the product are unrestricted and have a defined weight.

I would like help from you.

Edit: I have already followed the FAQ with problems with the upload plugin and did not work the possibilities.

Attachments:
Last Edit: 3 months 3 weeks ago by mazin07.

Please Log in or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 1
3 months 3 weeks ago #287246

I fixed the problem and corrected the "ids" of the delivery services that were updated. But I'm still having a problem, the code calls "shipping_price" where it prints the delivery value and I also want to call a variable for the delivery time. Can you give me a light?

if($conteudo)
				$dadosCorreios = simplexml_load_string($conteudo);

			if(is_object($dadosCorreios->cServico)){
				$Valor = (string)$dadosCorreios->cServico->Valor;
				$PrazoEntrega = (string)$dadosCorreios->cServico->PrazoEntrega;
				$Erro = (string)$dadosCorreios->cServico->Erro;
				$MsgErro = (string)$dadosCorreios->cServico->MsgErro;
				if($Erro!=0){
					$messages[]=$MsgErro;
				}
				$Valor = str_replace("," , ".", $Valor); //CALL PRICE
			}

			if($Valor > 0){
				$rate -> shipping_price = $Valor; //PRINT PRICE
				//$rate -> shipping_price = 10.00;
				$rate -> shipping_id = $rate->shipping_params->correios_servico;

				$usable_rates[] = $rate;
			}
		}

		return true;
	}

I want to call the string "PrazoEntrega" after the "$Valor" (shipping_price)

Last Edit: 3 months 3 weeks ago by mazin07.

Please Log in or Create an account to join the conversation.

  • Posts: 11539
  • Thank you received: 1601
  • MODERATOR
3 months 2 weeks ago #287273

Hello,

Can you show us the full configuration of your Correios shipping method so that we can check your shipping "Warehouse" option ?

Thank you.

Please Log in or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 1
3 months 2 weeks ago #287330

Code removed by a moderator

Attachments:
Last Edit: 3 months 2 weeks ago by Jerome.

Please Log in or Create an account to join the conversation.

  • Posts: 11539
  • Thank you received: 1601
  • MODERATOR
3 months 2 weeks ago #287361

Hello,

Can you show us the full configuration of your Correios shipping method so that we can check your shipping "Warehouse" option ?

Thank you.

Please Log in or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 1
3 months 2 weeks ago #287397

Added

Warehouse = Armazém

Attachments:
Last Edit: 3 months 2 weeks ago by mazin07.

Please Log in or Create an account to join the conversation.

  • Posts: 11539
  • Thank you received: 1601
  • MODERATOR
3 months 2 weeks ago #287432

Hello,

In that case, I think that your issue is coming from the fact that you have different warehouses set on your product configuration page and your shipping configuration page.
You should try it with the same value.

Please Log in or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 1
3 months 2 weeks ago #287475

Later I will update and post again here in the forum. However, the problem I turn to helps is about the deadline for shipping and delivery.

The 'Correios' plugin does not return the 'PrazoEntrega' value of the .xml that the webview returns, the plugin just takes the value in "Valor". I moved in Armazen, though I believe this will not help. As I mentioned at the beginning of the topic I would like to know how I make the plugin capture the "PrazoEntrega" value of .xml and play on "shipping_params"


See this:

if($Valor > 0){
				$rate -> shipping_price = $Valor; // <- Value
				//$rate -> shipping_price = 10.00;
				$rate -> shipping_id = $rate->shipping_params->correios_servico;

				$usable_rates[] = $rate;
			}
		}

The ideal is to call $PrazoEntrega and update shipping_params->correios_servico;

But, how, i dont know

special thanks for the support

Please Log in or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 1
3 months 2 weeks ago #287520

I configured the warehouse in the product (it was already set up) and the shipping plugin, but it does not appear. As I said, it is missing to insert this information into the plugin.

Please Log in or Create an account to join the conversation.

  • Posts: 22339
  • Thank you received: 3478
  • MODERATOR
3 months 2 weeks ago #287542

Hello,

You're talking about that plugin, right ?
github.com/HikaShop/hikashopshipping-correios

Because that plugin has been created by a third party and provided it for free to the community.
The support team can maintain the plugin so it will continue to "work" but the support team can't provide more.
We did not create that plugin, we do not have any access (and even if we did, we did not create that plugin).

Now if you have issues with the HikaShop shipping system ; you have to use the "manual" shipping plugin or an official HikaShop shipping plugin. So our team can't provide support.
Since your plugin is not an official one, there is nothing which can indicate that there is an issue with the HikaShop shipping system.

So if you have issues with that plugin and it's related to its code ; you're free to make appropriate patches and propose a pull-request.
And if you need some help with the development, we would recommend you to contact a developer (like some in our partner page).

But I'm sorry ; the support team cannot help you with your Correios plugin.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 1
3 months 2 weeks ago #287599

Hello Jerome, thank you very much for the response. I love your support.

That is exactly what I am asking from the beginning of the topic. I just want to know the name of the value to assign the shipping time of the product.

In the code, we have: $ rate -> shipping_price = $ Valor;

And I want to know what the name in HikaShop for me to add something like " 'shipping_time' = $PrazoEntrega;"

Understood?

Please Log in or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 1
3 months 2 weeks ago #287600

I want to get the value of the variable "PrazoEntrega" that returns, and insert in the same HikaShop the plugin is doing with the variable "Valor", that goes back to the hikashop by the method:

$rate -> shipping_price = $Valor;
				$rate -> shipping_id = $rate->shipping_params->correios_servico;

				$usable_rates[] = $rate;

Resume, I want add in "shipping_params" the value "PrazoEntrega". Like:

(Ex)

$rate -> shipping_DeliveryTime = $PrazoEntrega;
$rate -> shipping_id = $rate->shipping_params->correios_servico;

$usable_rates[] = $rate


See? I want the name in HikaShop for "Delivery Time Params", because i not found in source

Please Log in or Create an account to join the conversation.

  • Posts: 29
  • Thank you received: 1
3 months 2 weeks ago #287606

I looked for another alternative to the problem, a simpler one that worked very well. I just asked the program to print a text and call the value $PrazoEntrega

Only a few adjustments are left and ready. How do I make the updated plugin available for you to test and update the database?

$rate -> shipping_description = 'Estimated delivery date PAC:  ' . $PrazoEntrega;

Please Log in or Create an account to join the conversation.

  • Posts: 22339
  • Thank you received: 3478
  • MODERATOR
3 months 2 weeks ago #287602

Hello,

I'm afraid that you did not understand my message.
Your question is not related to the HikaShop core feature but to the correios plugin.

As I wrote (to summarize):

But I'm sorry ; the support team cannot help you with your Correios plugin.


Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.121 seconds
Powered by Kunena Forum