- Posts: 111
- Thank you received: 0
Buy now button with options?
11 years 4 months ago #203542
by nunonog
Buy now button with options? was created by nunonog
-- 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.
-- 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.
Please Log in or Create an account to join the conversation.
11 years 4 months ago #203567
by nicolas
Replied by nicolas on topic Buy now button with options?
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.
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.
11 years 4 months ago #203648
by nunonog
Replied by nunonog on topic Buy now button with options?
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
€ 40,00
Update, support and services
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
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
All our packages include 1-year free update, support and web cron service for one website.
This package enables you to renew this contract for a year or two.
If we discover security issues or major bugs, we will always give you the possibility to update your component for free.
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.
11 years 4 months ago #203672
by nicolas
Replied by nicolas on topic Buy now button with options?
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:
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
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:
Code:
$config = hikashop_config();
$defaultParams = $config->get('default_params');
$currencyClass->getListingPrices($products,$zone_id,hikashop_getCurrency(),$defaultParams['price_display_type']);
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.
11 years 4 months ago #203805
by nunonog
Replied by nunonog on topic Buy now button with options?
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.
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.
11 years 4 months ago #203868
by nicolas
Replied by nicolas on topic Buy now button with options?
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 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.199 seconds