Show available shipping methotds on product page

  • Posts: 75
  • Thank you received: 4
1 year 7 months ago #352953

-- HikaShop version -- : 4.7.2
-- Joomla version -- : 4.3.1
-- PHP version -- : 8.1

Hi,
Is there any option to show the available shipping methotds on product page?
I have some product with only collection and the cart handles them very well...if someone put a product to the cart which is collection only, the delivery options doesn't come up at all.
I would like to make it clear before the customer get to that part.

Thanks

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

  • Posts: 83326
  • Thank you received: 13473
  • MODERATOR
1 year 7 months ago #352954

Hi,

Yes.

1.HikaShop comes with the "HikaShop Shipping manual - Prices per product plugin" that you can configure via the Joomla plugins manager. It has settings to display the shipping prices on the frontend. Note however that it requires you using manual shipping methods with their "shipping price per product" setting activated (that way, it's possible to configure different shipping prices for different products in each product edit screen).

2. A more general solution is the shipping estimation plugin by Obsidev: www.hikashop.com/marketplace/product/244...tion-by-obsidev.html
This can work with any shipping methods, even UPS, USPS, FedEx etc where the shipping fee is calculated dynamically with a communication with the shipping service server. And for shipping methods like these, which requires the post code / country / city of the user, it has options to ask these to the user in a popup so that he can get the shipping fee.

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

  • Posts: 75
  • Thank you received: 4
1 year 7 months ago #352957

Hi Nicolas,
I don't need the shipping prices.
I just need the available shipping methods for the product in a list to display like:
"Available shipping methods: Collect in person, FedEx"

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

  • Posts: 83326
  • Thank you received: 13473
  • MODERATOR
1 year 7 months ago #352958

Hi,

So, do you means it is a fixed text for all your products ?
In that case, you can edit the product page layout via the menu Display>Views and add your text where you want it to appear.
I'll recommend first reading about view editing here:
www.hikashop.com/support/documentation/1...-display.html#layout
That will allow you to know which view file to edit and where to do that.

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

  • Posts: 75
  • Thank you received: 4
1 year 7 months ago #352969

Well fix string is the "Available shipping methods:" and then I need an array or something what is available for the actual product.

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

  • Posts: 83326
  • Thank you received: 13473
  • MODERATOR
1 year 7 months ago #352971

Hi,

Well, you could create a custom field of the table "product" via the menu Display>Views, so that in each product you could select the elements you want to be displayed on the product page then.
www.hikashop.com/support/documentation/4...shop-field-form.html

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

  • Posts: 75
  • Thank you received: 4
1 year 6 months ago #354093

Can you let me know which db table contains the product shipping prices? Maybe from that I can get it somehow with db query.
Like select (shipping name) from xy where product id is (id)

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

  • Posts: 4781
  • Thank you received: 649
  • MODERATOR
1 year 6 months ago #354105

Hello,

You will find it in the table "XXX_hikashop_shipping" where XXX is your table index, you can in php call it like this,
Example :

$query = 'SELECT * FROM ' . hikashop_table('shipping') . ' WHERE etc...

Hope this will help you to achieve your needs.
Regards

Last edit: 1 year 6 months ago by Philip.

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

  • Posts: 75
  • Thank you received: 4
1 year 6 months ago #354125

Hi,
I found the shipping table and it has the shipping methods.
I would need the table where these are paired with the prooducts.
I'm using the prices per product plugin to enable-disable some shipping methods for products and I would like to display on the product page which is available (I know I can see it later in the cart, but I need it on the product page as well).
So probably there is a table where you keep the product_id with the shipping_id connected, but I can't find this one.

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

  • Posts: 4781
  • Thank you received: 649
  • MODERATOR
1 year 6 months ago #354130

Hello,

Like previous "XXX_hikashop_shipping_price" with :

$query = 'SELECT * FROM ' . hikashop_table('shipping') . ' WHERE...

Regards

Last edit: 1 year 6 months ago by Philip.

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

Time to create page: 0.073 seconds
Powered by Kunena Forum