Post by PAULAOPRIS » Fri Feb 10, 2017 3:56 pm

Buna ziua,
Incerc sa ascund butonul "Adauga in cos" de pe carusele create in journal (de pe home) prin vqmod, si sa afisez un alt buton care are legatura cu "ean"-ul produsului. Codul meu de pana acum arata cam asa ,dar nu se intampla nimic. Pe pagina de produs si categorii am reusit sa fac asta , dar pe home nu mi le ascunde.

Code: Select all

 
<file name="catalog/controller/module/bestseller.php">
<operation>
<search position="after"><![CDATA[$data['products'][] = array(]]></search>
<add><![CDATA[
'ean' => $result['ean'],
]]></add>
</operation>
</file>
<file name="catalog/view/theme/*/template/module/bestseller.tpl">
<operation info="show data ean when not null">
<search position="before"><![CDATA[<div class="button-group">]]></search>
<add><![CDATA[
<?php if ($product['ean'] != null) { ?>
<a href = "<?php echo $product['ean'];?>" style="font-weight: 400;
       border-radius: 5px;
    padding: 5px 20px;
    font-style: normal;
    font-size: 16px;
    text-transform: uppercase;
    color: rgb(255, 255, 255);
	    background-color: rgb(221, 0, 23);
	">Spre magazin</a>
<?php } ?>
]]></add>
</operation>
<operation>	
  <search position="replace"><![CDATA[<div class="button-group">]]></search>
  <add><![CDATA[
			  <?php if ($product['ean'] != null) {?>
			<div class="button-group" style="display:none;">
			   <?php } else {?>
			 <div class="button-group">
			 <?php   }?>]]>
			</add>
  </operation> 
</file>

<file name="catalog/view/theme/*/template/journal2/module/carousel_product.tpl">
<operation>	
  <search position="replace"><![CDATA[<a onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button hint--top" data-hint="<?php echo $button_cart; ?>"><i class="button-left-icon"></i><span class="button-cart-text"><?php echo $button_cart; ?></span><i class="button-right-icon"></i></a>]]></search>
  <add><![CDATA[
			  <?php if ($product['ean'] != null) {?>
			  <a onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button hint--top" data-hint="<?php echo $button_cart; ?>"><i class="button-left-icon"></i><span class="button-cart-text"><?php echo $button_cart; ?></span><i class="button-right-icon"></i></a>
		   
			   <?php } else {?>
			     <a onclick="addToCart('<?php echo $product['product_id']; ?>');" class="button hint--top" data-hint="<?php echo $button_cart; ?>"><i class="button-left-icon"></i><span class="button-cart-text"><?php echo $button_cart; ?></span><i class="button-right-icon"></i></a>

			 <?php   }?>]]>
			</add>
 </operation>	
</file>

User avatar
Newbie

Posts

Joined
Thu Feb 02, 2017 6:37 pm

Post by medvi » Sat Feb 11, 2017 5:47 am

Faceti ceva comercial sau pentru uz personal? Pe ce adresa este magazinul?

Image


User avatar
Active Member

Posts

Joined
Wed Mar 04, 2015 12:29 am
Location - Bucuresti

Post by topy » Tue Feb 14, 2017 7:45 pm

Paula, depinde ce folosesti in prima pagina. Daca folosesti carouselul sau altceva :) M-am chinuit un pic sa inlocuiesc functionalitatea buttonului quick view cu detalii :) .. i-am dat de cap pana la urma. Da-ne detalii despre modul care este in prima pagina...

New member

Posts

Joined
Mon Jun 20, 2011 2:52 pm

Post by PAULAOPRIS » Tue Feb 21, 2017 5:31 pm

topy wrote:
Tue Feb 14, 2017 7:45 pm
Paula, depinde ce folosesti in prima pagina. Daca folosesti carouselul sau altceva :) M-am chinuit un pic sa inlocuiesc functionalitatea buttonului quick view cu detalii :) .. i-am dat de cap pana la urma. Da-ne detalii despre modul care este in prima pagina...
Salut, pe quickview reusisem sa schimb butonul .
Folosesc intr-adevar carouselul

User avatar
Newbie

Posts

Joined
Thu Feb 02, 2017 6:37 pm
Who is online

Users browsing this forum: Bing [Bot] and 3 guests