Welcome, Guest
Username: Password: Remember me

TOPIC: Necesito agregar el SKU en la posición donde se muestra el precio OT Kitchen

Necesito agregar el SKU en la posición donde se muestra el precio OT Kitchen 3 years 8 months ago #4371

This image is hidden for guests. Please log in or register to see it.

Hola a tod@s... necesito hacer algo sencillo, pero no se como. Necesito poner en la posición donde normalmente va el precio en el listado de productos del template OT Kitchen, para que en lugar aparezca el SKU number correspondiente.

Si me pueden ayudar alguien por favor, muchas gracias ¡

Hello to everyone s ... I need to do something simple, but not how. I need to put in the position where the price usually goes in the product listing template OT Kitchen, so instead display the SKU number for.

If someone can help me please, thank you very much
The administrator has disabled public write access.

Re: Necesito agregar el SKU en la posición donde se muestra el precio OT Kitchen 3 years 8 months ago #4380

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2287
  • Thank you received: 997
  • Karma: 121
Hello,

You can edit file default.php in: templates/ot_kitchen/html/com_virtuemart/category

Find this code below:
<div class="product-price" id="productPrice<?php echo $product->virtuemart_product_id ?>">
										<?php
										if ($this->show_prices == '1') {
											if( $product->product_unit && VmConfig::get('vm_price_show_packaging_pricelabel')) {
												echo "<strong>". JText::_('COM_VIRTUEMART_CART_PRICE_PER_UNIT').' ('.$product->product_unit."):</strong>";
											}
											if(empty($product->prices) and VmConfig::get('askprice',1) and empty($product->images[0]->file_is_downloadable) ){
												echo JText::_('COM_VIRTUEMART_PRODUCT_ASKPRICE');
											}
											//todo add config settings
											if( $this->showBasePrice){
												echo $this->currency->createPriceDiv('basePrice','COM_VIRTUEMART_PRODUCT_BASEPRICE',$product->prices);
												echo $this->currency->createPriceDiv('basePriceVariant','COM_VIRTUEMART_PRODUCT_BASEPRICE_VARIANT',$product->prices);
											}
											echo $this->currency->createPriceDiv('variantModification','COM_VIRTUEMART_PRODUCT_VARIANT_MOD',$product->prices);
											echo $this->currency->createPriceDiv('basePriceWithTax','COM_VIRTUEMART_PRODUCT_BASEPRICE_WITHTAX',$product->prices);
											echo $this->currency->createPriceDiv('discountedPriceWithoutTax','COM_VIRTUEMART_PRODUCT_DISCOUNTED_PRICE',$product->prices);
											echo $this->currency->createPriceDiv('salesPriceWithDiscount','COM_VIRTUEMART_PRODUCT_SALESPRICE_WITH_DISCOUNT',$product->prices);
											echo $this->currency->createPriceDiv('salesPrice','COM_VIRTUEMART_PRODUCT_SALESPRICE',$product->prices);
											echo $this->currency->createPriceDiv('priceWithoutTax','COM_VIRTUEMART_PRODUCT_SALESPRICE_WITHOUT_TAX',$product->prices);
											echo $this->currency->createPriceDiv('discountAmount','COM_VIRTUEMART_PRODUCT_DISCOUNT_AMOUNT',$product->prices);
											echo $this->currency->createPriceDiv('taxAmount','COM_VIRTUEMART_PRODUCT_TAX_AMOUNT',$product->prices);
										} ?>
										
									</div>

and replacement with code
<div class="product-mf" id="productPrice<?php echo $product->virtuemart_product_id ?>">
	<?php echo $product->product_sku; ?>
</div>
and remember add some css style for it ;)

Regards
Last Edit: 3 years 8 months ago by trungdt. Reason: changed code
The administrator has disabled public write access.

Re: Necesito agregar el SKU en la posición donde se muestra el precio OT Kitchen 3 years 8 months ago #4398

Hi, thanks... I make this change but don´t see nothing, is necessary create a css style for work, because don´t work. Can you help me ¡
The administrator has disabled public write access.

Re: Necesito agregar el SKU en la posición donde se muestra el precio OT Kitchen 3 years 8 months ago #4399

I have disabled the option to see the price, because is a catalog of products, I don´t need the price, only the SKU number... Thanks again ¡
The administrator has disabled public write access.

Re: Necesito agregar el SKU en la posición donde se muestra el precio OT Kitchen 3 years 7 months ago #4705

Hello, I try to fix this, but I can´t... Can you help me ?... How much for your time ? I need your services... please ¡¡¡ THANKS ¡
The administrator has disabled public write access.

Re: Necesito agregar el SKU en la posición donde se muestra el precio OT Kitchen 3 years 7 months ago #4723

  • trungdt
  • trungdt's Avatar
  • OFFLINE
  • Administrator
  • Posts: 2287
  • Thank you received: 997
  • Karma: 121
Please email me your site ftp info so i can help you.

Regards
The administrator has disabled public write access.

Re: Necesito agregar el SKU en la posición donde se muestra el precio OT Kitchen 3 years 7 months ago #4731

I don´t see your email, please email to me to reply. jalfaro @ mayca.com
The administrator has disabled public write access.
Time to create page: 0.168 seconds