Avisos
Vaciar todo

Hosting WordPress 70% dto Dominios promo

Quitar palabra "precio" de la ficha de producto  

 
Virginia
 Virginia
Usuario experto

Buenas tardes.

En la ficha de productos, en la columna de la derecha aparece la palabra Precio en negrita. ¿Qué tendría que desactivar en Virtuemart para que dicha palabra no aparezca?. He adjuntado una imagen para que podáis ver lo que necesito conseguir.

Muchas gracias.

URL del sitio: http://www.electronicajamer.es

Citar
Respondido : 23/07/2012 5:07 pm
Luis Mendez Alejo
 Luis Mendez Alejo
Miembro Admin

Hola Virginia,

Es una captura demasiado pequeña para ver bajo que layout se muestra este texto, si en un producto, si en los detalles, etc., y ayudaría mucho a responderte ver una captura mayor, donde podamos percibir mejor el contexto en que se muestran esos datos.

Saludos

ResponderCitar
Respondido : 23/07/2012 8:29 pm

Gestor de Contraseñas - VPN Conexión Segura - Gestor 2FA (Segundo Factor de Autenticación

Virginia
 Virginia
Usuario experto

Tienes razón Luis.

Ahora he adjuntado una imagen más grande y a continuación dejo el link:
Enlace

Esto aparecen en la productdetails page (creo).

Saludos.

ResponderCitar
Respondido : 23/07/2012 10:01 pm
David Noguera
 David Noguera
Miembro Moderator

Hola Virginia, tendrás que editar el template de VirtueMart, comprueba si tienes overrides en tu template para VirtueMart, para esto accede a /templates/nombre-template/html/ y revisa si existe el directorio:

/templates/nombre-template/html/com_virtuemart

Si existe busca has de modificar el código del layout aquí:

YOUR_TEMPLATE/html/com_virtuemart/productdetails/default.php

Si no existe este directorio has de crear una copia del fichero:

components/com_virtuemart/views/productdetails/tmpl/default.php aquí YOUR_TEMPLATE/html/com_virtuemart/productdetails/default.php y luego editarlo..

Deberás de quitar las etiquetas strong que envuelven a la palabra precio..

Más info sobre los overrides aquí:

http://forum.virtuemart.net/index.php?topic=92756.0

Saludos!

ResponderCitar
Respondido : 24/07/2012 10:31 am

Virginia
 Virginia
Usuario experto

Hola David.

Yo pensaba que se podría hacer desde virtuemart. De todas formas, he ido al archivo default.php de la carpeta productdetails (tengo hecho templates overrides) y no veo nada con la etiqueta . Es raro que no aparezca en el código y sí aparezca en el front-end de la web. Me imagino que habrá alguna referencia php.

Por si me podéis ayudar a continuación dejo el código:

product->virtuemart_product_id . '&virtuemart_category_id=' . $this->product->virtuemart_category_id . '&tmpl=component');
$document = JFactory::getDocument();
$document->addScriptDeclaration("
	jQuery(document).ready(function($) {
		$('a.ask-a-question').click( function(){
			$.facebox({
				iframe: '" . $url . "',
				rev: 'iframe|550|550'
			});
			return false ;
		});
	/*	$('.additional-images a').mouseover(function() {
			var himg = this.href ;
			var extension=himg.substring(himg.lastIndexOf('.')+1);
			if (extension =='png' || extension =='jpg' || extension =='gif') {
				$('.main-image img').attr('src',himg );
			}
			console.log(extension)
		});*/
	});
");
/* Let's see if we found the product */
if (empty($this->product)) {
    echo JText::_('COM_VIRTUEMART_PRODUCT_NOT_FOUND');
    echo '

' . $this->continue_link_html; return; } ?>
product->neighbours ['previous'][0])) { $prev_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['previous'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id); echo JHTML::_('link', $prev_link, $this->product->neighbours ['previous'][0] ['product_name'], array('class' => 'previous-page')); } if (!empty($this->product->neighbours ['next'][0])) { $next_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['next'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id); echo JHTML::_('link', $next_link, $this->product->neighbours ['next'][0] ['product_name'], array('class' => 'next-page')); } ?>

product->product_name ?>

product->event->afterDisplayTitle ?> edit_link; // Product Edit Link END ?>
product->virtuemart_product_id; $MailLink = 'index.php?option=com_virtuemart&view=productdetails&task=recommend&virtuemart_product_id=' . $this->product->virtuemart_product_id . '&virtuemart_category_id=' . $this->product->virtuemart_category_id . '&tmpl=component'; if (VmConfig::get('pdf_icon', 1) == '1') { echo $this->linkIcon($link . '&format=pdf', 'COM_VIRTUEMART_PDF', 'pdf_button', 'pdf_button_enable', false); } echo $this->linkIcon($link . '&print=1', 'COM_VIRTUEMART_PRINT', 'printButton', 'show_printicon'); echo $this->linkIcon($MailLink, 'COM_VIRTUEMART_EMAIL', 'emailButton', 'show_emailfriend'); ?>
product->customfieldsSorted['ontop'])) { $this->position = 'ontop'; echo $this->loadTemplate('customfields'); } // Product Custom ontop end ?>
loadTemplate('images'); ?>
product->virtuemart_vendor_id); $text = JText::_('COM_VIRTUEMART_VENDOR_FORM_INFO_LBL'); echo ''. JText::_('COM_VIRTUEMART_PRODUCT_DETAILS_VENDOR_LBL'). ''; ?><a class="modal" href="">
*/ ?> showRating) { $maxrating = VmConfig::get('vm_maximum_rating_scale', 5); if (empty($this->rating)) { ?> rating->rating * 100 ) / $maxrating; //I don't use round as percetntage with works perfect, as for me ?> rating->rating, 2) . '/' . $maxrating; ?>
<span title=" rating->rating . '/' . $maxrating) ?>" class="vmicon ratingbox" style="display:inline-block;"> <span class="stars-orange" style="width:">
productDisplayShipments)) { foreach ($this->productDisplayShipments as $productDisplayShipment) { echo $productDisplayShipment . '
'; } } if (is_array($this->productDisplayPayments)) { foreach ($this->productDisplayPayments as $productDisplayPayment) { echo $productDisplayPayment . '
'; } } echo "
Referencia: ". $this->product->product_sku ."
"; // Product Price if ($this->show_prices and (empty($this->product->images[0]) or $this->product->images[0]->file_is_downloadable == 0)) { echo $this->loadTemplate('showprices'); } ?> product->prices) and !empty($this->product->images[0]) and $this->product->images[0]->file_is_downloadable==0 ) { if (!VmConfig::get('use_as_catalog', 0) and !empty($this->product->prices)) { echo $this->loadTemplate('addtocart'); } // Add To Cart Button END ?> product->product_availability)) { $stockhandle = VmConfig::get('stockhandle', 'none'); if ($stockhandle == 'risetime' and ($this->product->product_in_stock - $this->product->product_ordered)
'availability')); ?>
product->product_availability, $this->product->product_availability, array('class' => 'availability')); ?>
<a class="ask-a-question" href="" > <!--<a class="ask-a-question modal" rel="{handler: 'iframe', size: {x: 700, y: 550}}" href="">-->
product->virtuemart_manufacturer_id)) { echo $this->loadTemplate('manufacturer'); } ?>
product->event->beforeDisplayContent; ?> product->product_desc)) { ?>
product->product_desc; ?>
product->customfieldsSorted['normal'])) { $this->position = 'normal'; echo $this->loadTemplate('customfields'); } // Product custom_fields END // Product Packaging $product_packaging = ''; if ($this->product->packaging || $this->product->box) { ?>
product->packaging) { $product_packaging .= JText::_('COM_VIRTUEMART_PRODUCT_PACKAGING1') . $this->product->packaging; if ($this->product->box) $product_packaging .= '
'; } if ($this->product->box) $product_packaging .= JText::_('COM_VIRTUEMART_PRODUCT_PACKAGING2') . $this->product->box; echo str_replace("{unit}", $this->product->product_unit ? $this->product->product_unit : JText::_('COM_VIRTUEMART_PRODUCT_FORM_UNIT_DEFAULT'), $product_packaging); ?>
product->images as $fkey => $file) { // Todo add downloadable files again // if( $file->filesize > 0.5) $filesize_display = ' ('. number_format($file->filesize, 2,',','.')." MB)"; // else $filesize_display = ' ('. number_format($file->filesize*1024, 2,',','.')." KB)"; /* Show pdf in a new Window, other file types will be offered as download */ // $target = stristr($file->file_mimetype, "pdf") ? "_blank" : "_self"; // $link = JRoute::_('index.php?view=productdetails&task=getfile&virtuemart_media_id='.$file->virtuemart_media_id.'&virtuemart_product_id='.$this->product->virtuemart_product_id); // echo JHTMl::_('link', $link, $file->file_title.$filesize_display, array('target' => $target)); // } if (!empty($this->product->customfieldsRelatedProducts)) { echo $this->loadTemplate('relatedproducts'); } // Product customfieldsRelatedProducts END if (!empty($this->product->customfieldsRelatedCategories)) { echo $this->loadTemplate('relatedcategories'); } // Product customfieldsRelatedCategories END // Show child categories if (VmConfig::get('showCategory', 1)) { echo $this->loadTemplate('showcategory'); } if (!empty($this->product->customfieldsSorted['onbot'])) { $this->position='onbot'; echo $this->loadTemplate('customfields'); } // Product Custom ontop end ?> product->event->afterDisplayContent; ?> loadTemplate('reviews'); ?>
ResponderCitar
Respondido : 24/07/2012 5:46 pm
Jhon
 Jhon
Soporte CMS Webempresa Moderator

HOla Virgina

En este archivo deberías buscar la constante COM_VIRTUEMART_CART_PRICE

/templates/TU_TEMPLATE/html/com_virtuemart/productdetails/default.php

En el código enviado no existe, revisa que sea el archivo correcto.

Saludos.

ResponderCitar
Respondido : 24/07/2012 10:08 pm

optimiza-automaticamente-todas-las-imagenes-de-tu-wordpress

Virginia
 Virginia
Usuario experto

Hola Jhon. Gracias por responder.

He estado buscando la constante que me has comentado pero no aparece. La ruta del archivo es esta: mi_template/html/com_virtuemart/productdetails/default.php

Y el código del archivo default.php es este:

product->virtuemart_product_id . '&virtuemart_category_id=' . $this->product->virtuemart_category_id . '&tmpl=component');
$document = JFactory::getDocument();
$document->addScriptDeclaration("
	jQuery(document).ready(function($) {
		$('a.ask-a-question').click( function(){
			$.facebox({
				iframe: '" . $url . "',
				rev: 'iframe|550|550'
			});
			return false ;
		});
	/*	$('.additional-images a').mouseover(function() {
			var himg = this.href ;
			var extension=himg.substring(himg.lastIndexOf('.')+1);
			if (extension =='png' || extension =='jpg' || extension =='gif') {
				$('.main-image img').attr('src',himg );
			}
			console.log(extension)
		});*/
	});
");
/* Let's see if we found the product */
if (empty($this->product)) {
    echo JText::_('COM_VIRTUEMART_PRODUCT_NOT_FOUND');
    echo '

' . $this->continue_link_html; return; } ?>
product->neighbours ['previous'][0])) { $prev_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['previous'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id); echo JHTML::_('link', $prev_link, $this->product->neighbours ['previous'][0] ['product_name'], array('class' => 'previous-page')); } if (!empty($this->product->neighbours ['next'][0])) { $next_link = JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=' . $this->product->neighbours ['next'][0] ['virtuemart_product_id'] . '&virtuemart_category_id=' . $this->product->virtuemart_category_id); echo JHTML::_('link', $next_link, $this->product->neighbours ['next'][0] ['product_name'], array('class' => 'next-page')); } ?>

product->product_name ?>

product->event->afterDisplayTitle ?> edit_link; // Product Edit Link END ?>
product->virtuemart_product_id; $MailLink = 'index.php?option=com_virtuemart&view=productdetails&task=recommend&virtuemart_product_id=' . $this->product->virtuemart_product_id . '&virtuemart_category_id=' . $this->product->virtuemart_category_id . '&tmpl=component'; if (VmConfig::get('pdf_icon', 1) == '1') { echo $this->linkIcon($link . '&format=pdf', 'COM_VIRTUEMART_PDF', 'pdf_button', 'pdf_button_enable', false); } echo $this->linkIcon($link . '&print=1', 'COM_VIRTUEMART_PRINT', 'printButton', 'show_printicon'); echo $this->linkIcon($MailLink, 'COM_VIRTUEMART_EMAIL', 'emailButton', 'show_emailfriend'); ?>
product->customfieldsSorted['ontop'])) { $this->position = 'ontop'; echo $this->loadTemplate('customfields'); } // Product Custom ontop end ?>
loadTemplate('images'); ?>
product->virtuemart_vendor_id); $text = JText::_('COM_VIRTUEMART_VENDOR_FORM_INFO_LBL'); echo ''. JText::_('COM_VIRTUEMART_PRODUCT_DETAILS_VENDOR_LBL'). ''; ?><a class="modal" href="">
*/ ?> showRating) { $maxrating = VmConfig::get('vm_maximum_rating_scale', 5); if (empty($this->rating)) { ?> rating->rating * 100 ) / $maxrating; //I don't use round as percetntage with works perfect, as for me ?> rating->rating, 2) . '/' . $maxrating; ?>
<span title=" rating->rating . '/' . $maxrating) ?>" class="vmicon ratingbox" style="display:inline-block;"> <span class="stars-orange" style="width:">
productDisplayShipments)) { foreach ($this->productDisplayShipments as $productDisplayShipment) { echo $productDisplayShipment . '
'; } } if (is_array($this->productDisplayPayments)) { foreach ($this->productDisplayPayments as $productDisplayPayment) { echo $productDisplayPayment . '
'; } } echo "
Referencia: ". $this->product->product_sku ."
"; // Product Price if ($this->show_prices and (empty($this->product->images[0]) or $this->product->images[0]->file_is_downloadable == 0)) { echo $this->loadTemplate('showprices'); } ?> product->prices) and !empty($this->product->images[0]) and $this->product->images[0]->file_is_downloadable==0 ) { if (!VmConfig::get('use_as_catalog', 0) and !empty($this->product->prices)) { echo $this->loadTemplate('addtocart'); } // Add To Cart Button END ?> product->product_availability)) { $stockhandle = VmConfig::get('stockhandle', 'none'); if ($stockhandle == 'risetime' and ($this->product->product_in_stock - $this->product->product_ordered)
'availability')); ?>
product->product_availability, $this->product->product_availability, array('class' => 'availability')); ?>
<a class="ask-a-question" href="" > <!--<a class="ask-a-question modal" rel="{handler: 'iframe', size: {x: 700, y: 550}}" href="">-->
product->virtuemart_manufacturer_id)) { echo $this->loadTemplate('manufacturer'); } ?>
product->event->beforeDisplayContent; ?> product->product_desc)) { ?>
product->product_desc; ?>
product->customfieldsSorted['normal'])) { $this->position = 'normal'; echo $this->loadTemplate('customfields'); } // Product custom_fields END // Product Packaging $product_packaging = ''; if ($this->product->packaging || $this->product->box) { ?>
product->packaging) { $product_packaging .= JText::_('COM_VIRTUEMART_PRODUCT_PACKAGING1') . $this->product->packaging; if ($this->product->box) $product_packaging .= '
'; } if ($this->product->box) $product_packaging .= JText::_('COM_VIRTUEMART_PRODUCT_PACKAGING2') . $this->product->box; echo str_replace("{unit}", $this->product->product_unit ? $this->product->product_unit : JText::_('COM_VIRTUEMART_PRODUCT_FORM_UNIT_DEFAULT'), $product_packaging); ?>
product->images as $fkey => $file) { // Todo add downloadable files again // if( $file->filesize > 0.5) $filesize_display = ' ('. number_format($file->filesize, 2,',','.')." MB)"; // else $filesize_display = ' ('. number_format($file->filesize*1024, 2,',','.')." KB)"; /* Show pdf in a new Window, other file types will be offered as download */ // $target = stristr($file->file_mimetype, "pdf") ? "_blank" : "_self"; // $link = JRoute::_('index.php?view=productdetails&task=getfile&virtuemart_media_id='.$file->virtuemart_media_id.'&virtuemart_product_id='.$this->product->virtuemart_product_id); // echo JHTMl::_('link', $link, $file->file_title.$filesize_display, array('target' => $target)); // } if (!empty($this->product->customfieldsRelatedProducts)) { echo $this->loadTemplate('relatedproducts'); } // Product customfieldsRelatedProducts END if (!empty($this->product->customfieldsRelatedCategories)) { echo $this->loadTemplate('relatedcategories'); } // Product customfieldsRelatedCategories END // Show child categories if (VmConfig::get('showCategory', 1)) { echo $this->loadTemplate('showcategory'); } if (!empty($this->product->customfieldsSorted['onbot'])) { $this->position='onbot'; echo $this->loadTemplate('customfields'); } // Product Custom ontop end ?> product->event->afterDisplayContent; ?> loadTemplate('reviews'); ?>

Es muy raro porque nunca me ha costado tanto encontrar un texto así. También he probado a buscar por la etiqueta y no aparece nada así.

ResponderCitar
Respondido : 26/07/2012 5:58 pm
Jhon
 Jhon
Soporte CMS Webempresa Moderator

HOla Virginia

Que versíon exacta de virtuemart tienes?, puedes buscar la constante COM_VIRTUEMART_CART_PRICE en los archivos de tu template

En caso no la encuentres, tendrás que realizar un proceso similar al comentado por David.

Saludos

ResponderCitar
Respondido : 27/07/2012 5:31 pm

Cursos Gratuitos WordPress

Vettusta
 Vettusta
Estimable Member

En mi caso con Virtuemart 2.0.14, modifiqué el archivo:

/public_html/components/com_virtuemart/views/productdetails/tmpl/default_showprices.php

O bien si tienes overrides en tu template sería:

/public_html/templates/TU_TEMPLATE/html/com_virtuemart/productdetails/tmpl/default_showprices.php

En la línea 25 aparece el siguiente código que pienso que buscáis.

echo "" . JText::_ ('COM_VIRTUEMART_CART_PRICE') . "";

En mi caso eliminé esta línea y me desapareció la palabra precio.
De todas formas confirmarlo, aunque a mi me haya servido.
Un saludo.

ResponderCitar
Respondido : 11/12/2012 4:58 pm