Advanced Search

Search Results (Searched for: )

02 Jul 2016 08:33

where is hikashop_add_wishlist

Category: Product & Category Display

hi guys thanks

nicolas

maybe i wasn't clear. im using listing_ img_description. the code is below. I want to find this <div id="hikashop_add_wishlist"> .
<div class="hikashop_product_stock hidden-xs xxs"><a rel="nofollow" class="hikashop_cart_button" href="#" onclick="var field=document.getElementById('hikashop_product_quantity_field_8');if(hikashopCheckChangeForm('item','hikashop_product_form_127_hikashop_category_information_menu_1697')){ return hikashopModifyQuantity('127',field,1,'hikashop_product_form_127_hikashop_category_information_menu_1697','cart',0); } return false;"><div class="cusbut"> <div id="faicon"><i class="fa fa-shopping-cart fa-lg" aria-hidden="true"></i>        </div><div class="adcart hidden-xs xxs">Add to Cart</div></div></a><input id="hikashop_product_quantity_field_8" type="hidden" value="1" class="hikashop_product_quantity_field" name="quantity">[b][u][i]<div id="hikashop_add_wishlist">[/i][/u][/b]<a rel="nofollow" class="hikashop_cart_button" href="#" onclick="var field=document.getElementById('hikashop_product_quantity_field_8');if(hikashopCheckChangeForm('item','hikashop_product_form_127_hikashop_category_information_menu_1697')){ var typeField = document.querySelector('form[name=hikashop_product_form_127_hikashop_category_information_menu_1697] input[name=cart_type]'); if(typeField !== null){typeField.value = 'wishlist';} return hikashopModifyQuantity('127',field,1,'hikashop_product_form_127_hikashop_category_information_menu_1697','wishlist',0); } else { return false; }"><div class="cusbut">
           <div id="faicon">
                  <i class="fa fa-heart fa-lg" aria-hidden="true"></i>
           </div>
           <div class="adcart hidden-xs xxs">Add to Wishlist</div>
 </div>
</a></div>	</div>

product / quantity.php this is the code. i dont see the "id" i am looking for. i modified this class hikashop_product_stock but what i want is to hide add_to_wishlist only.
<?php
/**
 * @package	HikaShop for Joomla!
 * @version	2.6.3
 * @author	hikashop.com
 * @copyright	(C) 2010-2016 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php
global $Itemid;
$url_itemid = '';
if(!empty($this->itemid))
	$url_itemid = $this->itemid;
elseif(!empty($Itemid))
	$url_itemid = '&Itemid='.$Itemid;

if($this->config->get('show_quantity_field') == -2){
	if(@$this->row->product_display_quantity_field == 0)
		$this->row->product_display_quantity_field = 1;
	$this->params->set('show_quantity_field', @$this->row->product_display_quantity_field);
}

$config =& hikashop_config();

$wishlistEnabled = $config->get('enable_wishlist', 1);
$hideForGuest = 1;
if(($config->get('hide_wishlist_guest', 1) && hikashop_loadUser() != null) || !$config->get('hide_wishlist_guest', 1))
	$hideForGuest = 0;

if(!isset($this->cart))
	$this->cart = hikashop_get('helper.cart');

$url = '';
$module_id = $this->params->get('from_module', 0);

if(empty($this->ajax))
	$this->ajax = 'return hikashopModifyQuantity(\''.$this->row->product_id.'\',field,1,0,\'cart\','.$module_id.')';

if(@$this->row->product_sale_start || empty($this->element->main))
	$start_date = @$this->row->product_sale_start;
else
	$start_date = $this->element->main->product_sale_start;

if(@$this->row->product_sale_end || empty($this->element->main))
	$end_date = @$this->row->product_sale_end;
else
	$end_date = $this->element->main->product_sale_end;

$formName = ',0';
if(!$this->config->get('ajax_add_to_cart', 0) || ($this->config->get('show_quantity_field') >= 2 && !@$this->element->product_id)) {
	if(empty($this->formName)) {
		if(@$this->row->product_id)
			$formName = ',\'hikashop_product_form_'.$this->row->product_id.'_'.$this->params->get('main_div_name').'\'';
		else
			$formName = ',\'hikashop_product_form_'.$this->params->get('main_div_name').'\'';
	} else {
		$formName = $this->formName;
	}
}

$showFree = ($this->config->get('display_add_to_wishlist_for_free_products', 1) || (!$this->config->get('display_add_to_wishlist_for_free_products', 1) && !empty($this->row->prices) && $this->row->prices[0]->price_value != '0'));

if($end_date && $end_date < time()) {
?>
	<span class="hikashop_product_sale_end">
		<?php echo JText::_('ITEM_NOT_SOLD_ANYMORE'); ?>
	</span>
<?php
} elseif($start_date && $start_date > time()) {
?>
	<span class="hikashop_product_sale_start"><?php
		echo JText::sprintf('ITEM_SOLD_ON_DATE', hikashop_getDate($start_date, $this->params->get('date_format','%d %B %Y')));
	?></span>
<?php
} elseif(!$this->params->get('catalogue') && ($this->config->get('display_add_to_cart_for_free_products') || !empty($this->row->prices))) {
	if(@$this->row->product_min_per_order || empty($this->element->main))
		$min = @$this->row->product_min_per_order;
	else
		$min = @$this->element->main->product_min_per_order;

	if(@$this->row->product_max_per_order || empty($this->element->main))
		$max = @$this->row->product_max_per_order;
	else
		$max = @$this->element->main->product_max_per_order;

	if($min <= 0)
		$min = 1;

	if($formName == ',0')
		$formName = ',hikashop_product_form';
	$cleanFormName = str_replace(array('\'',','),'',$formName);
	$wishlistAjax =	'if(hikashopCheckChangeForm(\'item\''.$formName.')){ var typeField = document.querySelector(\'form[name='.$cleanFormName.'] input[name=cart_type]\'); if(typeField !== null){typeField.value = \'wishlist\';} return hikashopModifyQuantity(\'' . (int)@$this->row->product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }';

	if($this->row->product_quantity == -1 && !empty($this->element->main) && $this->element->main->product_quantity != -1)
		$this->row->product_quantity = $this->element->main->product_quantity;

	$btnType = 'add';
	if($this->row->product_quantity == -1) {
?>
	<div class="hikashop_product_stock hidden-xs xxs"><?php

		if(!empty($this->row->has_options)) {
			if($this->params->get('add_to_cart',1))
				echo $this->cart->displayButton(JText::_('CHOOSE_OPTIONS'), 'choose_options', $this->params, hikashop_contentLink('product&task=show&product_id='.$this->row->product_id.'&name='.$this->row->alias.$url_itemid.$this->category_pathway,$this->row),'window.location = \''.str_replace("'","\'",hikashop_contentLink('product&task=show&product_id='.$this->row->product_id.'&name='.$this->row->alias.$url_itemid.$this->category_pathway,$this->row)).'\';return false;', '');
		} else {
			if($this->params->get('add_to_cart', 1)) {
				echo $this->cart->displayButton(JText::_('ADD_TO_CART'), 'add', $this->params, $url, $this->ajax, '', $max, $min);
				$btnType = 'wish';
			}

			if(hikashop_level(1) && $this->params->get('add_to_wishlist') && $wishlistEnabled && !$hideForGuest && $showFree) {
				echo '<div id="hikashop_add_wishlist">' .
					$this->cart->displayButton(JText::_('ADD_TO_WISHLIST'), $btnType, $this->params, $url, $wishlistAjax, '', $max, $min, '', false) .
					'</div>';
			}
		}
	} elseif($this->row->product_quantity > 0) {
?>
	<div class="hikashop_product_stock hidden-xs xxs">
<?php
		if($this->row->product_quantity == 1 && JText::_('X_ITEM_IN_STOCK') != 'X_ITEM_IN_STOCK')
			$text = JText::sprintf('X_ITEM_IN_STOCK', $this->row->product_quantity);
		else
			$text = JText::sprintf('X_ITEMS_IN_STOCK', $this->row->product_quantity);

		echo '<span class="hikashop_product_stock_count">'.$text.'<br/></span>'
			. '<span style="display: none" itemprop="availability" itemscope itemtype="http://schema.org/InStock">in stock</span>';

		if($config->get('button_style', 'normal') == 'css')
			echo '<br />';

		if($max <= 0 || $max > $this->row->product_quantity)
			$max = $this->row->product_quantity;

		if(!empty($this->row->has_options)) {
			if($this->params->get('add_to_cart', 1))
				echo $this->cart->displayButton(JText::_('CHOOSE_OPTIONS'), 'choose_options', $this->params, hikashop_contentLink('product&task=show&product_id='.$this->row->product_id.'&name='.$this->row->alias.$url_itemid.$this->category_pathway,$this->row),'window.location = \''.str_replace("'","\'",hikashop_contentLink('product&task=show&product_id='.$this->row->product_id.'&name='.$this->row->alias.$url_itemid.$this->category_pathway,$this->row)).'\';return false;','');
		} else {
			if($this->params->get('add_to_cart', 1)) {
				echo $this->cart->displayButton(JText::_('ADD_TO_CART'), 'add', $this->params, $url, $this->ajax, '', $max, $min);
				$btnType = 'wish';
			}

			if(hikashop_level(1) && $this->params->get('add_to_wishlist') && $wishlistEnabled && !$hideForGuest && $showFree){
				echo '<div id="hikashop_add_wishlist">' .
					$this->cart->displayButton(JText::_('ADD_TO_WISHLIST'), $btnType, $this->params, $url, $wishlistAjax, '', $max, $min, '', false) .
					'</div>';
			}
		}
	} else {
?>
	<div class="hikashop_product_no_stock">
<?php
		echo '<span style="display: none" itemprop="availability" itemscope itemtype="http://schema.org/InStock">Out of stock</span>';

		echo JText::_('NO_STOCK').'<br/>';
		$waitlist = $this->config->get('product_waitlist', 0);
		if(hikashop_level(1) && ($waitlist == 2 || ($waitlist == 1 && (!empty($this->row->main->product_waitlist) || !empty($this->row->product_waitlist))))) {
?>
	</div>
	<div id="hikashop_product_waitlist_main" class="hikashop_product_waitlist_main">
<?php
			$empty = '';
			jimport('joomla.html.parameter');
			$params = new HikaParameter($empty);
			echo $this->cart->displayButton(JText::_('ADD_ME_WAITLIST'), 'add_waitlist', $params, hikashop_completeLink('product&task=waitlist&cid='.$this->row->product_id.$url_itemid), 'window.location=\''.str_replace("'","\'",hikashop_completeLink('product&task=waitlist&cid='.$this->row->product_id.$url_itemid)).'\';return false;');
		}

		if(hikashop_level(1) && $this->params->get('add_to_wishlist')  && $wishlistEnabled && !$hideForGuest && $showFree) {
			if(!empty($this->row->has_options)) {
				if($this->params->get('add_to_cart', 1))
					echo $this->cart->displayButton(JText::_('CHOOSE_OPTIONS'),'choose_options',$this->params,hikashop_contentLink('product&task=show&product_id='.$this->row->product_id.'&name='.$this->row->alias.$url_itemid.$this->category_pathway,$this->row),'window.location = \''.str_replace("'","\'",hikashop_contentLink('product&task=show&product_id='.$this->row->product_id.'&name='.$this->row->alias.$url_itemid.$this->category_pathway,$this->row)).'\';return false;','');
			}else{
				echo '<div id="hikashop_add_wishlist">' .
					$this->cart->displayButton(JText::_('ADD_TO_WISHLIST'), 'add', $this->params, $url, $wishlistAjax, '', @$this->row->product_max_per_order, 1, '', false) .
					'</div>';
			}
		}
	}
?>
	</div>
<?php
} elseif(hikashop_level(1) && $wishlistEnabled && $this->params->get('add_to_wishlist', 1) && $showFree && !$hideForGuest && !$this->config->get('display_add_to_cart_for_free_products')) {
	if(!empty($this->row->has_options)) {
		if($this->params->get('add_to_cart', 1))
			echo $this->cart->displayButton(JText::_('CHOOSE_OPTIONS'), 'choose_options', $this->params, hikashop_contentLink('product&task=show&product_id='.$this->row->product_id.'&name='.$this->row->alias.$url_itemid.$this->category_pathway,$this->row),'window.location = \''.str_replace("'","\'",hikashop_contentLink('product&task=show&product_id='.$this->row->product_id.'&name='.$this->row->alias.$url_itemid.$this->category_pathway,$this->row)).'\';return false;', '');
	} else {
		$wishlistAjax =	'if(hikashopCheckChangeForm(\'item\''.$formName.')){ return hikashopModifyQuantity(\'' . (int)@$this->row->product_id . '\',field,1' . $formName . ',\'wishlist\','.$module_id.'); } else { return false; }';
		echo '<div id="hikashop_add_wishlist">' .
			$this->cart->displayButton(JText::_('ADD_TO_WISHLIST'), 'add', $this->params, $url, $wishlistAjax, '', @$this->row->product_max_per_order, 1, '', false) .
			'</div>';
	}
}

lousy thank you again for helping out. Can you be more specific? i want to hide add_to_wishlist on certain screen sizes not permanently hide it.

thanks again
02 Jul 2016 11:13

where is hikashop_add_wishlist

Category: Product & Category Display

hi. thank you for your patience. i found it. 4 lines indeed.

my problem now is that the media query wont work with the div id. the media query only works with div class

this is my css code

class
@media screen and (max-width: 479px) {

.xxs {display:none !important;}
}

id

@media screen and (max-width: 479px) {

#xxs {display:none !important;}
}

could you please take a look
04 Jul 2016 14:03

where is hikashop_add_wishlist

Category: Product & Category Display

hi lousy

thanks again. i got it to work


Part of the message is hidden for the guests. Please log in or register to see it.


hi nicolas, thanks also

i added languange overrides to some buttons. im having problems with the compare button or at to compare list button. when my overrides are in place it does not work. When button is clicked the product page is displayed.

this is the override

ADD_TO_COMPARE_LIST =
<div class="cusbut"> <div id="faicon"> <i class="fa fa-exchange fa-lg" aria-hidden="true"></i> </div> <div id="adcart hidden-xs">Compare Product</div></div>

if i delete this override. Some of the products work and some doesnt.

this is the link to the page


Part of the message is hidden for the guests. Please log in or register to see it.


Maybe i missed something?

thanks again
04 Jul 2016 14:05

temporary checkout redirect

Category: Checkout

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

hi

is it possible to temporarily disable the checkout process? i would like site users to view the site but not checkout as it is not yet finish. Can i disable or redirect it temporarily to a page?

thanks again
05 Jul 2016 11:52

temporary checkout redirect

Category: Checkout

hi

can we redirect it to a page? or article?

thanks
05 Jul 2016 12:41

where is hikashop_add_wishlist

Category: Product & Category Display

thanks again guys

lousy

3. Why so many (nested) <div> containers, anyway? You just want an icon and two words, right? Then make the string in the language override just that, nothing else! I guess neither the nesting nor the class and ID you're adding are doing anything for you, anyway, other than placing the icon above the text inside the button.


For different views.

4. If you're using your language code exactly as you posted here, there are syntax errors - again, causing weird behaviour. You must use double quotes around the text string (and only once each at beginning and end), but no more double quotes inside, not without escaping them. For classes you may use single quotes instead.


it doesn't work. Everytime i save the override the singles quotes get replaced by double quotes. i have rereplacer installed but i dont see any override for the quotes. To be sure i disabled it. But still same issue with a few products.

Nicolas

Your translation override is not valid.
You need to use simple quotes inside it and double quotes around it, like that:
ADD_TO_COMPARE_LIST ="<div class='cusbut'> <div id='faicon'> <i class='fa fa-exchange fa-lg' aria-hidden='true'></i> </div> <div id='adcart hidden-xs'>Compare Product</div></div>


it doesnt work. the single quotes are replaced after i save it. i deleted the overrides for the buttons and its still the same for some products. When i click compare it loads. I disabled rereplacer. cleared cache and still nothing.

to recreate go to website ? click the store icon on top > once loaded just compare a few items. this is one of the product that loads when compare is click Women's Casual Shoes.

thanks again guys
05 Jul 2016 13:43

how to add module?

Category: How to?

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

hi

how can i add a joomla module inside the filter.php file

i tried to add this code for the module but does not work

<jdoc:include type="modules" name="pos" style="xhtml" />

thanks
05 Jul 2016 19:03

where is hikashop_add_wishlist

Category: Product & Category Display

i found the problem.

its with the single quotes in the title.

example:

men's shoes
mens' shoes

if i remove it compare button is working. unfortunately i cant take them out.

Any ideas?

thanks
05 Jul 2016 19:16

how to use user inbox?

Category: How to?

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

hi

does hikamarket have an inbox?

what if buyers have a question for the vendors?

question for the store owner?

thanks
06 Jul 2016 06:10

where is hikashop_add_wishlist

Category: Product & Category Display

what about the title? the product title?

is it causing problems? the single quotes on the title is causing problems for the compare product on my end

thanks
06 Jul 2016 11:50

where is hikashop_add_wishlist

Category: Product & Category Display

hi

your interface is different from mine.

i tried 2 other websites and the results is still the same. The language override doesnt accept the single quotes. it is being replaced by double quotes. Also the servers and hosting providers are different. I have attached a screen shot




07 Jul 2016 10:37

where is hikashop_add_wishlist

Category: Product & Category Display

lousy

i'm new to hikashop. i did not know that there is a language override menu for hika, where is it?

thanks again


nicolas

im using the same version as the way on the latest version of hikashop business. Should i proceed in updating?

where can i find the view files? i would like to backup my modifications before any update.

thanks
11 Jul 2016 06:29

Group by category layout issue

Category: Showcase

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

Hi

im having a layout issue when using group by category config for products module.

i attached a photo




thanks
11 Jul 2016 06:30

how to use user inbox?

Category: How to?

thanks jerome
11 Jul 2016 06:31

where is user inbox?

Category: Market: How to?

-- HikaShop version -- : 2.6.3
-- HikaMarket version -- : 1.7.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

does hikamarket have an inbox?

what if buyers have a question for the vendors?

question for the store owner?

thanks
11 Jul 2016 12:47

Associated Modules

Category: Content Creation

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

hi

i found the ability to create modules under the product page.

is this possible for categories as well?

i found a docu about associated menus but i cant see it on the category listing menu

thanks
12 Jul 2016 19:37

Associated Modules

Category: Content Creation

at the configuration > main > product. you can select modules for the product page.




in the category page can i have this too?

thanks
13 Jul 2016 12:22

how to customize category module

Category: Product & Category Display

-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5
-- Error-message(debug-mod must be tuned on) -- : none

hi

is there a way to customize Categories [mod_hikashop]?

1. the link dispalys a hikashop link example is below

mayari.com.ph/hikashop-menu-for-categori...pparel-textiles-more

2. When i click on the categories displayed by this module the module disappears.


Part of the message is hidden for the guests. Please log in or register to see it.


before clicking on the category of course it is available. When you click on a category its gone


14 Jul 2016 06:45

how to customize category module

Category: Product & Category Display

hi

i think my question is not clear. let me clarify this.

1.this is the link of the category module. how can i change the link so that the word hikashop is not on the link?

xxxxxx.com.ph/hikashop-menu-for-module-4...-and-beauty-products

can we change this to

xxxxxx.com.ph/menu-for-module-405/catego...-and-beauty-products

thanks
18 Jul 2016 14:11

where is hikashop_add_wishlist

Category: Product & Category Display

hi

i already updated my copy with the latest one but its still not woking, The compare button still doesnt add the product to the items for comparison. Products with single quotes on their titles are still having issues.

Products with out the single quotes are fine

thanks
Displaying 81 - 100 out of 490 results.
Time to create page: 1.079 seconds
Powered by Kunena Forum