Print Button don't work with Cart-Module

  • Posts: 95
  • Thank you received: 1
11 years 10 months ago #84109

When I used a Print-Button in a Joomla-Article it's show me the html-code from the cart-module in the pop-up window (like this, if the cart is empty: <div id="hikashop_cart" class="hikashop_cart">Der Warenkorb ist leer.</div><div class="clear_both"></div>)
If I delete the cart-module, the Joomla-Article appears perfectly in the pop-up.

Please help me to change this wrong output. Exist any script that change the native Joomla-Print-Function?

Thx for all,
jonas

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

  • Posts: 16
  • Thank you received: 2
11 years 10 months ago #84122

check this topic ithink this will help you
www.hikashop.com/en/forum/4-how-to/71556...al-plugin.html#71556

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

  • Posts: 95
  • Thank you received: 1
11 years 10 months ago #84151

thanks, but I don't have a problem with a print button from a plugin or from a hikashop-site. The native print and email-button from a Joomla-Article-Site (not in the shop) shows me a script from the cart, if I using the cart-module from hikashop. Is the cart-modul off, worked it right.
I think any script is wrong.

I'm using Hikashop 2.0

Please help me!

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

  • Posts: 13201
  • Thank you received: 2322
11 years 10 months ago #84371

Hi,

Could you give us a link to your website ?

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

  • Posts: 95
  • Thank you received: 1
11 years 10 months ago #84382

No, the website is only on my computer running under xampp.
It is like I discribed on top - very strange. And without the cart-modul the joomla-article-button is working very well.
If is helpful to know: I'm working with joomla 2.5, hikashop 2.0 and the css-system jyaml.

If you need a special file or script-part to help me, let it me know please.

Here the output from the frontend site:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de-de" lang="de-de" dir="ltr">
<head>
  <base href="https://localhost/joomla2012/index.php/agb" />
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta name="author" content="Super User" />
  <meta name="generator" content="Joomla! - Open Source Content Management" />
  <title>AGB</title>
  <link href="https://localhost/joomla2012/index.php/component/search/?Itemid=505&amp;format=opensearch" rel="search" title="Suchen nicething" type="application/opensearchdescription+xml" />
  <link href="/joomla2012/templates/jyaml/favicon.ico" rel="shortcut icon" type="image/vnd.microsoft.icon" />
  <link rel="stylesheet" href="/joomla2012/templates/jyaml/css/base.layout.css" type="text/css" media="all"  />
  <link rel="stylesheet" href="/joomla2012/templates/jyaml/css/base.print.css" type="text/css" media="print"  />
  <link rel="stylesheet" href="/joomla2012/templates/jyaml/css/screen.responsive.css" type="text/css" media="all"  />
  <link rel="stylesheet" href="/joomla2012/media/com_hikashop/css/frontend_default.css?v=200" type="text/css" />
  <link rel="stylesheet" href="/joomla2012/templates/jyaml/css/navigation.vlist.css" type="text/css" media="all"  />
  <link rel="stylesheet" href="/joomla2012/templates/jyaml/css/navigation.dropdown.css" type="text/css" media="all"  />
  <style type="text/css">
#hikashop_category_information_module_102 div.hikashop_subcontainer {
	background:#FFFFFF;
}
#hikashop_category_information_module_102 .hikashop_rtop *,#hikashop_category_information_module_102 .hikashop_rbottom *{
	background:#FFFFFF;
}
#hikashop_category_information_module_102 div.hikashop_subcontainer,#hikashop_category_information_module_102 div.hikashop_subcontainer span {
	text-align:center;
}
#hikashop_category_information_module_102 div.hikashop_container {
	text-align:center;
}
#hikashop_category_information_module_102 div.hikashop_container {
	margin:10px 10px;
}
#hikashop_category_information_module_102 div.hikashop_category,#hikashop_category_information_module_102 div.hikashop_product{
	float:left;
	width:100%;
}
#hikashop_category_information_module_102 .hikashop_subcontainer {
		 -moz-border-radius: 5px;
		-webkit-border-radius: 5px;
		-khtml-border-radius: 5px;
		border-radius: 5px;
}
  </style>
  <script src="/joomla2012/media/system/js/mootools-core.js" type="text/javascript"></script>
  <script src="/joomla2012/media/system/js/core.js" type="text/javascript"></script>
  <script src="/joomla2012/media/system/js/caption.js" type="text/javascript"></script>
  <script src="/joomla2012/templates/jyaml/script/tmpl.js" type="text/javascript"></script>
  <script src="/joomla2012/media/com_hikashop/js/hikashop.js?v=200" type="text/javascript"></script>
  <script src="/joomla2012/libraries/jyaml/dropdown/js/menu.js" type="text/javascript"></script>
  <script src="/joomla2012/media/system/js/mootools-more.js" type="text/javascript"></script>
  <script type="text/javascript">
do_nothing( function() {
				
			});
<!--
	function hikashopModifyQuantity(id,obj,add,form,type){
		var d = document, cart_type="cart", addStr="", qty=1, e = null;
		if(type) cart_type = type;
		if(add) addStr = "&add=1";
		if(obj){
			qty = parseInt(obj.value);
		}else if(document.getElementById("hikashop_product_quantity_field_"+id).value){
			qty = document.getElementById("hikashop_product_quantity_field_"+id).value;
		}
		if(form && document[form]){
			var varform = document[form];
			if(cart_type == "wishlist"){
				e = d.getElementById("hikashop_cart_type_"+id);
				if(e) e.value = "wishlist";
				f = d.getElementById("type");
				if(f) f.value = "wishlist";
			}else{
				e = d.getElementById("hikashop_cart_type_"+id);
				if(e) e.value = "cart";
			}
			if(varform.task) {
				varform.task.value = "updatecart";
			}
			varform.submit();
		}else{
			var url = "/joomla2012/index.php/component/hikashop/product/updatecart/tmpl-component?from=module&product_id="+id+"&cart_type="+cart_type+"&quantity="+qty+addStr+"&return_url=aHR0cHM6Ly9sb2NhbGhvc3Qvam9vbWxhMjAxMi9pbmRleC5waHAvYWdi";
			var completeFct = function(result) {
				if(cart_type != "wishlist") {
					var hikaModule = window.document.getElementById("hikashop_cart_module");
					if(hikaModule) hikaModule.innerHTML = result;
				}
			}
			try{
				new Ajax(url, {method: "get", onComplete: completeFct}).request();
			}catch(err){
				new Request({url: url, method: "get", onComplete: completeFct}).send();
			}
		}
		return false;
	}
//-->
 if (typeof(JYAML) === 'undefined') { var JYAML = {}; } JYAML.get = function(type) { this.template = "jyaml"; this.templatePath = "/joomla2012/templates/jyaml"; this.imagePath = "/joomla2012/templates/jyaml/images"; this.scriptPath = "/joomla2012/templates/jyaml/script"; this.cssPath = "/joomla2012/templates/jyaml/css"; this.yamlPath = "/joomla2012/libraries/jyaml/yaml"; this.libraries = "/joomla2012/libraries/jyaml"; this.blankIMG = this.templatePath + "/images/blank.gif"; if(typeof(type) != 'undefined'){ return (typeof(this[type]) != 'undefined') ? this[type] : ''; } else { return this; } }; 
  </script>
  <!--[if IE 6]> <script type="text/javascript" src="/joomla2012/libraries/jyaml/assets/js/DD_belatedPNG_0.0.8a-min.js"></script> <![endif]-->
  <!--[if IE 6]> <script type="text/javascript">DD_belatedPNG.fix('img, div, p, span, li');</script> <![endif]-->
  <!--[if lte IE 6]> <style type="text/css">* html .page_margins { width:80em; width: expression((document.documentElement && document.documentElement.clientHeight) ? ((document.documentElement.clientWidth < 740) ? "740px" : ((document.documentElement.clientWidth > (80 * 16 * (parseInt(this.parentNode.currentStyle.fontSize) / 100))) ? "80em" : "auto" )) : ((document.body.clientWidth < 740) ? "740px" : ((document.body.clientWidth > (80 * 16 * (parseInt(this.parentNode.currentStyle.fontSize) / 100))) ? "80em" : "auto" ))); }</style> <![endif]-->
  <!--[if lte IE 7]> <link rel="stylesheet" href="/joomla2012/templates/jyaml/css/base.patch.css" type="text/css" media="all" /> <![endif]-->
  <!--[if lte IE 8]> <link rel="stylesheet" href="/joomla2012/templates/jyaml/css/patch.navigation.dropdown.css" type="text/css" media="all" /> <![endif]-->
<!--[if lt IE 8]><link rel="stylesheet" type="text/css" href="/joomla2012/../../css/redarrow.css"><![endif]-->
</head>
<body class="tmpl-index html-fullheight layout-2col_13 page-sfx-_agb">
  <a id="top" name="top"></a>
  <!-- skip link navigation -->
  <ul id="skiplinks"> <li><a class="skip" href="#navigation">Springe direkt zur Haupt-Navigation (Drücke die Enter Taste).</a></li>  <li><a class="skip" href="#content">Springe direkt zum Inhalt (Drücke die Enter Taste).</a></li> </ul>
  <div class="page_margins">
    <div class="page">
      <!-- begin: #background -->
<div class="custom"  >
	<div id="back">
<div id="back_content"> </div>
</div></div>
	  <!-- end: #background -->
      <!-- begin: #header -->
      <div id="header" role="banner">
                <div id="topnav" role="contentinfo">
            <div class="raw-links">
        <a href="/joomla2012/index.php/mein-konto" ><span class="item-title">Mein Konto</span></a> <span class="rawlink-spacer">|</span> <a href="/joomla2012/index.php/kontakt-nicething" ><span class="item-title">Kontakt</span></a>  </div>
        </div>
                <h1>
          <a href="/joomla2012/">
                          <img src="/joomla2012/images/jyaml/logos/logo.gif" width="390" height="160" alt="nicething" class="site-logo" />                      </a>
        </h1>
                		<div class="moduletable_wk">
					<h3>Warenkorb</h3>
					<div class="hikashop_cart_module" id="hikashop_cart_module">
<div id="hikashop_cart" class="hikashop_cart">
			Der Warenkorb ist leer.		</div>
		<div class="clear_both"></div></div>
		</div>
        <form action="/joomla2012/index.php/agb" method="post">
	<div class="search_se">
		<label for="mod-search-searchword"> </label><input name="searchword" id="mod-search-searchword" maxlength="20"  class="inputbox_se" type="text" size="25" value="Suche ..."  onblur="if (this.value=='') this.value='Suche ...';" onfocus="if (this.value=='Suche ...') this.value='';" /><input type="image" value=" " class="button_se" src="/joomla2012/templates/jyaml/images/searchButton.gif" onclick="this.form.searchword.focus();"/>	<input type="hidden" name="task" value="search" />
	<input type="hidden" name="option" value="com_search" />
	<input type="hidden" name="Itemid" value="505" />
	</div>
</form>
      </div>
      <!-- end: #header -->
            <!-- begin: main navigation #nav -->
      <div id="nav" class="clearfix" role="navigation">
        <a id="navigation" name="navigation" class="skiplink-anchor"></a>
            <div class="moduletable_nav">
          <div class="dropdown dropdown-horizontal dropdown-sfx-_nav clearfix">
	<ul class="menu" id="dropdown-87-4362">
<li class="item-484 item-first item-count0 level1 viewLevel0 type-separator"><span class="separator">Kategorien</span></li><li class="item-435 item-count1 level1 viewLevel0 type-component"><a href="/joomla2012/" ><span class="item-title">Home</span></a></li><li class="item-485 item-count2 level1 viewLevel0 type-component"><a href="/joomla2012/index.php/news" ><span class="item-title">News</span></a></li><li class="item-486 item-count3 level1 viewLevel0 type-component"><a href="/joomla2012/index.php/ueber-uns" ><span class="item-title">Über uns</span></a></li><li class="item-487 item-last item-count4 level1 viewLevel0 parent type-url"><a href="#" ><span class="item-title">Designer</span></a><div class="dropitem dropitem-down dropitemLevel0"><div class="dropitem-content clearfix"><ul><li class="item-488 item-first item-count0 level2 viewLevel1 type-component"><a href="/joomla2012/index.php/designer/jasmin-schroeder" ><span class="item-title">Jasmin Schröder</span></a></li><li class="item-490 item-last item-count1 level2 viewLevel1 type-component"><a href="/joomla2012/index.php/designer/victor-brizuela" ><span class="item-title">Victor Brizuela</span></a></li></ul></div></div></li></ul></div>
<script type="text/javascript"> do_nothing( function() { var myMenu = new JYAML.Dropdown('dropdown-87-4362', {subMenuSelector:'.dropitem',orientation:'horizontal',linearSubMenu:false,effects:['slide'],opacity:0.9,hideDelay:750,showDuration:750,showTransition:Fx.Transitions.Pow.easeOut,hideDuration:250,hideTransition:Fx.Transitions.Pow.easeIn,stretchWidthFistSubMenu:true}); }); </script>    </div>
      </div>
      <!-- end: main navigation -->
            <!-- begin: main content area #main -->
      <div id="main">
                <!-- begin: #col1 - first float column -->
        <div id="col1" role="complementary">
          <div id="col1_content" class="clearfix">
    <div class="moduletable_left">
          <div class="vlist vlist-sfx-_left">
  <ul class="menu">
<li class="item-501 item-first item-count0 level1 viewLevel0 type-component"><a href="/joomla2012/index.php/fuer-kinder" ><span class="item-title">Für Kinder</span></a></li><li class="item-483 item-count1 level1 viewLevel0 type-component"><a href="/joomla2012/index.php/papier-karten" ><span class="item-title">Papier / Karten</span></a></li><li class="item-482 item-count2 level1 viewLevel0 type-component"><a href="/joomla2012/index.php/glaeser" ><span class="item-title">Gläser</span></a></li><li class="item-504 item-last item-count3 level1 viewLevel0 type-component"><a href="/joomla2012/index.php/kunstobjekte" ><span class="item-title">Kunstobjekte</span></a></li></ul></div>    </div>
          </div>
        </div>
        <!-- end: #col1 -->
        <!-- begin: #col3 static column -->
        <div id="col3" role="main">
          <div id="col3_content" class="clearfix">
            <div id="col3_content_wrapper">
              <a id="content" name="content" class="skiplink-anchor"></a>
              <!-- begin: #col3 Imagemodul -->
              <!-- end: #col3 Imagemodul -->  
<div class="item-page_agb">
	<h2>
			Allgemeine Geschäftsbedingungen (AGB)		</h2>
	<ul class="actions">
						<li class="print-icon">
			<a href="/joomla2012/index.php/agb?tmpl=component&amp;print=1&amp;page=" title="Drucken" onclick="window.open(this.href,'win2','status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=640,height=480,directories=no,location=no'); return false;" rel="nofollow"><img src="/joomla2012/media/system/images/printButton.png" alt="Drucken"  /></a>			</li>
	</ul>
<h4>§ 1 Allgemeines - Geltungsbereich</h4>

<div><strong> </strong></div>
</div>
            </div>
          </div>
          <div id="ie_clearing">&nbsp;</div>
          <!-- End: IE Column Clearing -->
        </div>
        <!-- end: #col3 -->
      </div>
      <!-- end: #main -->
          </div>
  </div>
  <!-- begin: #footer -->
  <div id="footer" role="contentinfo">
    <div id="footer_content" class="clearfix">
  <div class="subcolumns">
    <div class="c20l">
    © 2013 nicething  	</div>
    <div class="c80r">
    <div class="footer1_foot">&#169; 2013 nicething</div>
<div class="footer2_foot"><a href="http://www.joomla.org">Joomla!</a> ist freie, unter der <a href="http://www.gnu.org/licenses/gpl-2.0.html">GNU/GPL-Lizenz</a> veröffentlichte Software.</div>
<div class="dropdown dropdown-horizontal clearfix">
	<ul class="menu_foot" id="dropdown-108-3373">
<li class="item-505 item-first item-count0 current active level1 viewLevel0 type-component page-sfx-_agb page-sfx-_agb-active page-sfx-_agb-current"><a class="current_link active_link" href="/joomla2012/index.php/agb" ><span class="item-title">AGB</span></a></li><li class="item-509 item-count1 level1 viewLevel0 type-separator"><span class="separator">|</span></li><li class="item-506 item-count2 level1 viewLevel0 type-component"><a href="/joomla2012/index.php/impressum" ><span class="item-title">Impressum</span></a></li><li class="item-508 item-count3 level1 viewLevel0 type-separator"><span class="separator">|</span></li><li class="item-507 item-last item-count4 level1 viewLevel0 type-component"><a href="/joomla2012/index.php/lieferbedingungen" ><span class="item-title">Lieferbedingungen</span></a></li></ul></div>
<script type="text/javascript"> do_nothing( function() { var myMenu = new JYAML.Dropdown('dropdown-108-3373', {subMenuSelector:'.dropitem',orientation:'horizontal',linearSubMenu:false,effects:['slide', 'fade'],opacity:0.9,hideDelay:750,showDuration:750,showTransition:Fx.Transitions.Pow.easeOut,hideDuration:250,hideTransition:Fx.Transitions.Pow.easeIn,stretchWidthFistSubMenu:true}); }); </script>
  	</div>
              </div>
    <!-- **********************************************************************
      © 2013 nicething      <span class="float_right a-right" style="border-left:1px solid #ccc; padding-left:1em; margin-top:.5em;">
            :: http://www.jyaml.de
            :: http://www.yaml.de
        Layout based on
        <a href="http://www.jyaml.de/" target="_blank">JYAML</a> and
        <a href="http://www.yaml.de/" target="_blank">YAML</a>
        <br /><small>powered by <a href="http://www.hieblmedia.de/" target="_blank">HieblMedia</a></small>
      </span>
      *********************************************************************** -->
    </div>
  </div>
  <!-- end: #footer -->
<script type="text/javascript" src="/joomla2012/libraries/jyaml/yaml/core/js/yaml-focusfix.js"></script>
</body>
</html>

Last edit: 11 years 10 months ago by Jerome.

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

  • Posts: 95
  • Thank you received: 1
11 years 10 months ago #84402

The same problem appears, if I want to choose a new billing-address. It's opened the pop-up with this lines from the cart-module:

<div id="hikashop_cart" class="hikashop_cart">
			<a class="hikashop_small_cart_checkout_link" href="/joomla2012/index.php/glaeser/checkout">
			<span class="hikashop_small_cart_total_title">2 Artikel für 	<span class="hikashop_product_price_full">
	<span class="hikashop_product_price hikashop_product_price_0">36,00 €</span> </span>
</span>
		</a></div>
<div class="clear_both"></div>

Plaese try to help me.
Thx,
jonas

Last edit: 11 years 10 months ago by Jerome.

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 10 months ago #84415

Hi,

Having just your HTML code could not help us to help you.
The module is displayed by Joomla and if you put the module in a classical position it should be not displayed in the article.
I tried it with Joomla 2.5, 3.0 and I didn't have any problem. There is nothing to configure in HikaShop but it's a joomla module display problem.

If the module position used for the HikaShop cart is displayed during print, it would be displayed during print.

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: 95
  • Thank you received: 1
11 years 10 months ago #84421

Thanks. I have changed the position of the modul for testing, but the result is always the same. I don't understand why the popup from the "change the address" in the billing-field show the same. Maybe is a wrong script for show the output in popups - in Hikashop or Joomla, I don't know where.

If you cannot help me in this way, I have to put the hole thing on a online-server. But I'm don't prepared yet - will need some time for this.

(sorry for my bad english)

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

  • Posts: 95
  • Thank you received: 1
11 years 10 months ago #84780

again my website is online (and my problem too): www.nicething.de/nicething
The site is under construction,some links are blind.

The print-icon on the home-site under the headline is working well and opened the popup for print. The other popups via print- and email-buttons from articles in "News", "Über uns", "AGB" shows the html from the cart-module.
Also when the user want to buy something (for testing the link "Gläser" on the left site) and want to change the delivery-address - the popup shows the cart-module-html.

If I disabled the cart-module all popups are working well.
I checked also the position of the cart-module and have changed it some times, the result is the same I discribed on top.

I haven't any idea, I'm not very good in PHP.

Thank you in advance!

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

  • Posts: 82796
  • Thank you received: 13357
  • MODERATOR
11 years 10 months ago #85197

Maybe it's something related to your template since we don't have the problem on our end.
Could you try to switch to the default joomla template and see if you still have the same issue ?

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

  • Posts: 82796
  • Thank you received: 13357
  • MODERATOR
11 years 10 months ago #85204

I'm thinking that it might also be related to the SEF on your website so please try to deactivate the SEF in the joomla configuration and see if that helps.

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

  • Posts: 95
  • Thank you received: 1
11 years 10 months ago #85418

Thanks a lot.

I've tested the SEF functions, but its allways the same result.

Yes, when I'm changed the template to a default from Joomla it works good, but I'm need my website in the originaly YAML-template.
I have tested a new Joomla installation version 2.58 with jyaml 4.02 and Hikashop 2.0 without any changes. If I'm positioned a Hikashop Module the popup shows me the html-code.

I think that jyaml and Hikashop no works fine together in (only) this point.

If you have any idea where is the script and what I've to put there for eliminate this foult would me help a lot.

Thanks for all!

(I don't have found nothing about this theme - jyaml with Hikashop - )

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

  • Posts: 95
  • Thank you received: 1
11 years 10 months ago #85429

I have found something. It's a thread from the creator of jyaml (hiebelmedia).
The handling of the modules depended if the template will count them: forum.itratos.de/showthread.php?38427-CS...-4.0.4-auf-der-Seite

Realy, I don't understand this (I'm an GraphicDesigner), but now the popups shows the right thing.

Thanks a lot.


( www.nicething.de/nicething/ )

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

  • Posts: 82796
  • Thank you received: 13357
  • MODERATOR
11 years 9 months ago #85625

Maybe some caching issue in the template ? I don't know but the problem must have come from the template as no one else had that issue so far with another template.

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

Time to create page: 0.100 seconds
Powered by Kunena Forum