Buy now button with options?

  • Posts: 111
  • Thank you received: 0
10 years 3 months ago #203542

-- url of the page with the problem -- : www.portal-gestao.com/teste
-- HikaShop version -- : 240
-- Joomla version -- : 341
-- Browser(s) name and version -- : Chrom

Hi,

Is it possible to display a buy now button with the options in a dropdown?

I mean transform this:



Into this:



The 1st image above displays 3 different prices for the same product, which doesn't make sense. How can the user know which of the prices is correct?

Also, it requires one extra step before the checkout process begins.

Attachments:

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 3 months ago #203567

Hi,

1. You should only see one price. How did you configure the prices of your product ? What is "versao" ? An option or a characteristic ?

2. Having directly the dropdown and the buy button on another place than the product page is not possible for now unless you write a heavy customization of the code.

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

  • Posts: 111
  • Thank you received: 0
10 years 3 months ago #203648

Hello,

1-
Versão means Version. It is configured as a Characteristic.
Each product has a characteristic. Depending on the chosen characteristic, the user will pay a different price and download a different file.
I simply added the "buy now" button typing {product 9|name|cart|description|picture|pricedis3} in a joomla article.

2-
I wouldn't think this is so complicated. Basically, I need to use the contents of this page as a buy button.
Is this possible to do with a module or some sort of customisation?
It would represent one less step in the checkout process.

Thank you

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 3 months ago #203672

Hi,

1. The fact that you have the price of all the variants displayed there is normal as it is the way it is set in the content plugin.
You would have to change the line:
$currencyClass->getListingPrices($products,$zone_id,hikashop_getCurrency(),'all');
to:
$currencyClass->getListingPrices($products,$zone_id,hikashop_getCurrency(),'cheapest');
in the file plugins/system/hikashopproductinsert/hikashopproductinsert.php in order to only see the cheapest price.
We'll actually change that to:

			$config = hikashop_config();
			$defaultParams = $config->get('default_params');
			$currencyClass->getListingPrices($products,$zone_id,hikashop_getCurrency(),$defaultParams['price_display_type']);
in the next version of HikaShop so that the prices display uses the "price display method" setting of the HikaShop configuration for the content tag display plugin.

2. If the whole content of the product page is ok for your case, you can use a Joomla module (like this one extensions.joomla.org/profile/extension/...-component-to-module or this one extensions.joomla.org/profile/extension/.../components-anywhere ) which modulizes this URL www.portal-gestao.com/listagem-de-produt....html?tmpl=component (you add ?tmpl=component at the end of the URL to remove the template around the page).
This supposes that the modulizing extension supports javascript as the variants system requires javascript in order to update the price and the variant selected.
And then you can insert the module in your article with the joomla loadposition system:
docs.joomla.org/How_do_you_put_a_module_inside_an_article%3F

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

  • Posts: 111
  • Thank you received: 0
10 years 3 months ago #203805

Hello,

I'm familiar with Modules Anywhere. Components Anywhere blocked the site frontend with 500 IS errors, I couldn't find out why.

A standar hikashop module with the contents of this page would be perfect.

All we had to do was to style the module in order to have the title, image, price, dropdown and button vertically (like in my image above) to have a perfect "buy now" button in joomla articles with options.

I'm sure a lot of other users would like this solution since it cuts one step in the checkout process and it is much better visually.

;)

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

  • Posts: 84304
  • Thank you received: 13698
  • MODERATOR
10 years 3 months ago #203868

Hi,

The problem with that page is that it is made to be alone on the page. So if you have a second similar module with another product on the same page, it won't work and the only solution is to rewrite a big part of how the system works for the characteristics/variants system.
That's why I said that it was not possible unless heavy coding changes.

But yes, that's something we would like to improve in the future.

The following user(s) said Thank You: nunonog

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

Time to create page: 0.068 seconds
Powered by Kunena Forum