the display of cart list page problem

  • Posts: 62
  • Thank you received: 0
9 years 6 months ago #222088

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5
-- PHP version -- : 5.4.45
-- Browser(s) name and version -- : Chrome

Hello ,

I have two problem about cart list page.

First , why the title:name have no data?

Second , what is current? why the data is blank too?

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
9 years 6 months ago #222091

Hi,

By default a cart does not have any name, the customer can fill it on the cart detail page.
You can potentially remove that column by editing the view "cart / showcarts".
www.hikashop.com/support/documentation/s...ize-the-display.html

Current should display stars, a grey one and a yellow one, it allow to change the currently selected cart.
So the customer can add product in one cart or in another one by pre-selecting it from this menu.

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

  • Posts: 62
  • Thank you received: 0
9 years 6 months ago #222144

Hi~

I got it.

I remove the cart name by your help.But The current didn't show stars , how to fix it?

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

  • Posts: 13201
  • Thank you received: 2322
9 years 6 months ago #222159

Hi,

You maybe have a css property overriding one of ours, and that's why the image is not displayed.
The browser console can be used in order to find the issue, see what is missing.

If you are not able to find the issue, you can give us a link to your website in order to look at this problem.

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

  • Posts: 62
  • Thank you received: 0
9 years 6 months ago #222288

Hello, I am afraid that I could not find the issue.Please do me a favor.
Below is the url and acount:

Last edit: 9 years 6 months ago by Jerome. Reason: remove credentials for your own good

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

  • Posts: 26251
  • Thank you received: 4039
  • MODERATOR
9 years 6 months ago #222313

Hi,

If you want to provide credentials ; use the contact us form but do not place these credentials directly in the forum.
Even if you're using the "hide" tag ; the content is not hidden for any logged user !

More than that, we do not perform customization on websites and if we need credentials for your website ; please be sure that we will ask for them (and ask you to use the "contact us" form for security purposes).

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 62
  • Thank you received: 0
9 years 6 months ago #222638

Hello~

I have already sent to you by contact us form , please check it.

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

  • Posts: 13201
  • Thank you received: 2322
9 years 6 months ago #222668

Hi,

Please do a view override on the view "cart / showcarts" and replace the whole code by this one:

<?php
global $Itemid;
$Itemid_str = '&Itemid='.$Itemid;
$cart_type = $this->cart_type;
$userCurrent = hikashop_loadUser();
$config = hikashop_config();
?>
<div id="hikashop_carts_listing">
<fieldset>
	<div class="header hikashop_header_title"><h1><?php if($cart_type == 'cart')echo JText::_('CARTS');else echo JText::_('WISHLISTS'); ?></h1></div>
	<div class="toolbar hikashop_header_buttons" id="toolbar" style="float: right;">
		<table class="hikashop_no_border">
			<tr>
				<td>
				<?php
					if($cart_type == 'cart' && $this->config->get('enable_multicart')){
				?>
						<a href="<?php echo hikashop_completeLink('cart&task=newcart&cart_type='.$cart_type.$Itemid_str); ?>">
							<span class="icon-32-add_cart" title="<?php echo JText::_('NEW_CART'); ?>">
							</span>
							<?php echo JText::_('NEW_CART'); ?>
						</a>
				<?php
					}elseif($cart_type == 'wishlist' && $this->config->get('enable_multicart')&& !empty($this->carts)){
				?>
						<a href="<?php echo hikashop_completeLink('cart&task=newcart&cart_type='.$cart_type.$Itemid_str); ?>">
							<span class="icon-32-add_wishlist" title="<?php echo JText::_('NEW_WISHLIST'); ?>">
							</span>
							<?php echo JText::_('NEW_WISHLIST'); ?>
						</a>
				<?php
					}
				?>
				</td>
				<?php if($userCurrent){ ?>
				<td>
					<a href="<?php echo JRoute::_('index.php?option='.HIKASHOP_COMPONENT.'&view=user&layout=cpanel'.$Itemid_str); ?>" >
						<span class="icon-32-back" title="<?php echo JText::_('HIKA_BACK'); ?>">
						</span>
						<?php echo JText::_('HIKA_BACK'); ?>
					</a>
				</td>
				<?php } ?>
			</tr>
		</table>
	</div>
</fieldset>
<div class="iframedoc" id="iframedoc"></div>
<form action="<?php echo hikashop_completeLink('cart'); ?>" method="post"  name="adminForm" id="adminForm">
	<table class="hikashop_no_border">
		<tr>
			<td width="100%">
				<?php echo JText::_( 'FILTER' ); ?>:
				<input type="text" name="search" id="hikashop_search" value="<?php echo $this->escape($this->pageInfo->search);?>" class="inputbox" onchange="document.adminForm.submit();" />
				<button class="btn" onclick="this.form.submit();"><?php echo JText::_( 'GO' ); ?></button>
				<button class="btn" onclick="document.getElementById('hikashop_search').value='';this.form.submit();"><?php echo JText::_( 'RESET' ); ?></button>
			</td>
		</tr>
	</table>
	<input type="hidden" name="Itemid" value="<?php echo $Itemid; ?>"/>
	<input type="hidden" name="option" value="<?php echo HIKASHOP_COMPONENT; ?>" />
	<input type="hidden" name="task" value="showcarts" />
	<input type="hidden" name="cart_type" value="<?php echo $cart_type; ?>" />
	<input type="hidden" name="ctrl" value="<?php echo JRequest::getCmd('ctrl'); ?>" />
	<input type="hidden" name="boxchecked" value="0" />
	<input type="hidden" name="filter_order" value="<?php echo $this->pageInfo->filter->order->value; ?>" />
	<input type="hidden" name="filter_order_Dir" value="<?php echo $this->pageInfo->filter->order->dir; ?>" />
	<?php echo JHTML::_( 'form.token' ); ?>
</form>
	<table id="hikashop_cart_listing" class="hikashop_carts adminlist table table-striped table-hover" cellpadding="1">
		<thead>
			<tr>
				<th class="hikashop_cart_num_title title titlenum" align="center">
					<?php echo JText::_( 'HIKA_NUM' );?>
				</th>
				<th class="hikashop_cart_name_title title" align="center">
					<?php echo JText::_('CART_PRODUCT_NAME'); ?>
				</th>
				<th class="hikashop_cart_quantity_title title" align="center">
					<?php echo JText::_('PRODUCT_QUANTITY'); ?>
				</th>
				<th class="hikashop_cart_price_title title" align="center">
					<?php echo JText::_('PRODUCT_PRICE'); ?>
				</th>
				<th class="hikashop_cart_modified_title title" align="center">
					<?php echo JText::_('HIKA_LAST_MODIFIED'); ?>
				</th>
				<th class="hikashop_cart_current_title title" align="center">
					<?php echo JText::_('HIKA_CURRENT'); ?>
				</th>
				<th class="hikashop_cart_delete_title title" align="center">
					<?php echo JText::_('HIKA_DELETE'); ?>
				</th>
			</tr>
		</thead>
		<tfoot id="hikashop_wishlist_listing_pagination" >
			<tr>
				<td align="center" colspan="7">
					<div style="text-align:center;" class="pagination">
						<form action="<?php echo hikashop_completeLink('cart&task=showcarts&cart_type='.$cart_type.$Itemid_str); ?>" method="post" name="adminForm_bottom">
							<?php $this->pagination->form = '_bottom'; echo $this->pagination->getListFooter(); ?>
							<?php echo $this->pagination->getResultsCounter(); ?>
							<input type="hidden" name="Itemid" value="<?php echo $Itemid; ?>"/>
							<input type="hidden" name="option" value="<?php echo HIKASHOP_COMPONENT; ?>" />
							<input type="hidden" name="task" value="showcarts" />
							<input type="hidden" name="cart_type" value="<?php echo $cart_type; ?>" />
							<input type="hidden" name="ctrl" value="<?php echo JRequest::getCmd('ctrl'); ?>" />
							<input type="hidden" name="boxchecked" value="0" />
							<input type="hidden" name="filter_order" value="<?php echo $this->pageInfo->filter->order->value; ?>" />
							<input type="hidden" name="filter_order_Dir" value="<?php echo $this->pageInfo->filter->order->dir; ?>" />
							<?php echo JHTML::_( 'form.token' ); ?>
						</form>
					</div>
				</td>
			</tr>
		</tfoot>
		<tbody>
			<?php
			$app = JFactory::getApplication();
			$k = 1;
			//Calcul du prix total & nb de produits dans le cart
			foreach($this->carts as $cart){
				if($k ==1)$k = 0;else $k =1;
				if($cart->cart_id != null && isset($cart->quantity) && isset($cart->price) && $cart->cart_type == $cart_type){
					$cartUrl = hikashop_completeLink('cart&task=showcart&cart_type='.$cart_type.'&cart_id='.$cart->cart_id);
				?>
					<tr class="hikashop_all_carts row<?php echo $k;?>">
						<td data-title="<?php echo JText::_( 'HIKA_NUM' );?>">
							<a href="<?php echo $cartUrl; ?>"  title="<?php echo $cart->cart_id ?>"><?php echo $cart->cart_id; ?></a>
						</td>
						<td data-title="<?php echo JText::_( 'CART_PRODUCT_NAME' );?>">
							<a href="<?php echo $cartUrl; ?>"  title="<?php echo $this->escape(strip_tags($cart->cart_name));?>"><?php echo $this->escape(strip_tags($cart->cart_name));?></a>
						</td>
						<td data-title="<?php echo JText::_( 'PRODUCT_QUANTITY' );?>"><?php echo $cart->quantity;?></td>
						<td data-title="<?php echo JText::_( 'PRODUCT_PRICE' );?>">
						<?php
							$config =& hikashop_config();
							if($config->get('price_with_tax')){
								echo $this->currencyHelper->format($cart->price_with_tax,$cart->currency);
							}
							if($config->get('price_with_tax')==2){
								echo JText::_('PRICE_BEFORE_TAX');
							}
							if($config->get('price_with_tax')==2||!$config->get('price_with_tax')){
								echo $this->currencyHelper->format($cart->price,$cart->currency);
							}
							if($config->get('price_with_tax')==2){
								echo JText::_('PRICE_AFTER_TAX');
							}
						?>
						</td>
						<td data-title="<?php echo JText::_( 'HIKA_LAST_MODIFIED' );?>"><?php echo hikashop_getDate($cart->cart_modified);?></td>
					<?php
						if($userCurrent == $cart->user_id){
							$cart_id = $app->getUserState( HIKASHOP_COMPONENT.'.'.$cart_type.'_id', 0, 'int' );
							if($cart->cart_current == 1 /*|| $cart->cart_id == $cart_id*/){
								?>
								<td data-title="<?php echo JText::_( 'HIKA_CURRENT' );?>" class='hikashop_all_carts_current'>
									<div class="hikashop_all_carts_current_star"></div>
								</td>
								<?php
							}
							else{
								?>
								<td data-title="<?php echo JText::_( 'HIKA_CURRENT' );?>" class='hikashop_all_carts_set_current'>
									<a  href="<?php echo hikashop_completeLink('cart&task=setcurrent&cart_id='.$cart->cart_id.'&cart_type='.$cart_type);?>">
										<div class='hikashop_all_carts_set_current_star'></div>
									</a>
								</td>
								<?php
							}
						}else{
						?>
							<td data-title="<?php echo JText::_( 'HIKA_CURRENT' );?>" class='hikashop_all_carts_set_current'></td>
						<?php
						}
						?>
						<td data-title="<?php echo JText::_( 'HIKA_DELETE' );?>" class="hikashop_all_carts_delete">
							<?php
							if($userCurrent == $cart->user_id){
							?>
							<a href="<?php echo hikashop_completeLink('cart&task=delete&cart_type='.$cart_type.'&cart_id='.$cart->cart_id); ?>"  title="<?php echo JText::_('HIKA_DELETE'); ?>">
								<img src="<?php echo HIKASHOP_IMAGES . 'delete2.png';?>" border="0" alt="<?php echo JText::_('HIKA_DELETE'); ?>" />
							</a>
							<?php } ?>
						</td>
					</tr>
				<?php
				}
			}
			?>
		</tbody>
	</table>
</div>
<div class="clear_both"></div>

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

  • Posts: 62
  • Thank you received: 0
9 years 6 months ago #222747

Hi,

The Code seems have problem due to the unexpected result.

You can check it by attachment.

At last, I close the multi-cart function , and the change the menu item from cart-list to cart-display.
It's solve the problem.Thanks anyway.

Attachments:

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

Time to create page: 0.080 seconds
Powered by Kunena Forum