Characteristics Pop Up Alert

  • Posts: 69
  • Thank you received: 5
11 years 1 month ago #127221

-- url of the page with the problem -- : 67.19.179.163/~fudge/
-- HikaShop version -- : HikaShop Business: 2.2.1
-- Joomla version -- : 2.5.14
-- PHP version -- : N/A
-- Browser(s) name and version -- : Firefox/Safari
-- Error-message(debug-mod must be tuned on) -- : N/A

We need a 1 lb. minimum order weight however we offer product in .5 lb. 'characteristics'. Is it possible to have a pop up alert when someone changes a characteristic to the .5 lb. option? We would like it to say - "1 lb. Minimum order - Mix and Match .5 lb slices of your choice!"

67.19.179.163/~fudge/index.php/hikashop-...1-butter-pecan-fudge

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

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #127270

Hi,

By default if you restrict the shipping method to a weight of min 1lb, then a message will be displayed in the checkout to say that the weight is enough.
You can customize this message to what you want thanks to the translations override.
www.hikashop.com/support/faq.html#tran

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

  • Posts: 69
  • Thank you received: 5
11 years 1 month ago #129248

This worked... we made our message longer now can we make the pop up window taller?

Also can we redirect them to another page? we want to send them to a category page instead of staying on the same page?

www.allenfamilyfudge.com/hikashop-menu-f...aramel-delight-fudge

Last edit: 11 years 1 month ago by mindstorm.

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

  • Posts: 13201
  • Thank you received: 2322
11 years 1 month ago #129402

Hi,

The easiest way to change the popup size is to edit the file "administrator/components/com_hikashop/helpers/cart.php"
In the function "getJS()" just replace the value of "x" and "y" in the lines:

							'<a rel="{handler: \'iframe\',size: {x: 480, y: 140}}" id="hikashop_notice_box_trigger_link" href="'.hikashop_completeLink('checkout&task=notice'.$url_itemid,true).'"></a>'.
							'<a rel="{handler: \'iframe\',size: {x: 480, y: 140}}" id="hikashop_notice_wishlist_box_trigger_link" href="'.hikashop_completeLink('checkout&task=notice&cart_type=wishlist'.$url_itemid,true).'"></a>'.

Be careful, when updating, the changes will be lost.

To redirect them, in the view "checkout / notice" via the menu Display > Views, you have to change the line:
setTimeout( 'window.parent.hikashop.closeBox()', <?php echo (int)$this->config->get('popup_display_time',2000);?> );
To:
setTimeout( 'window.location = "http://www.mozilla.org"', <?php echo (int)$this->config->get('popup_display_time',2000);?> );

Last edit: 11 years 1 month ago by Xavier.

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

Time to create page: 0.058 seconds
Powered by Kunena Forum