× Merci de préciser dans le titre la version utilisée ( exemple: Gantry 5 - votre sujet )

Question [Réglé] Gantry : Dysfonctionnement du template Virtuemart2

Plus d'informations
21 Oct 2013 23:39 #7 par origon
Réponse de origon sur le sujet Gantry : Dysfonctionnement du template Virtuemart2
Ok c'est super !
Je t'envoie le template
Le sujet a été verrouillé.
Plus d'informations
22 Oct 2013 02:26 #8 par tramber91
Réponse de tramber91 sur le sujet Gantry : Dysfonctionnement du template Virtuemart2
Bon j'ai regardé
suis comme toi pas specialite php

c'est bien le template qui va pas

fichier
templates/mowebso_ecommerce/html/com_virtuemart/productdetails/default.php

qui renverrai vers
/templates/mowebso_ecommerce/html/com_virtuemart/templates/default/productdetails/askaquestion/default.php

C'est un template payant
faut insister vers le vendeur

j'ai remplacé
templates/mowebso_ecommerce/html/com_virtuemart/productdetails/default.php
par le fichier par defaut de vituemart et tout les pop up fonctionnent

Courage

@+

Pas de support en MP sans y être invité. Merci
Merci de vous conformer aux règles du forum. Un merci, Cela fait toujours plaisir ;)
www.en-toutes-lettres.fr - Digital
Le sujet a été verrouillé.
Plus d'informations
22 Oct 2013 09:30 #9 par origon
Réponse de origon sur le sujet Gantry : Dysfonctionnement du template Virtuemart2
Merci d'y avoir regardé !

Le problème ne doit pas être très difficile à résoudre, juste un ou deux paramètres et lien à modifier mais sans connaitre le php c'est beaucoup moins évident

Je recherche donc un spécialiste php qui pourrait m'aider
Merci d'avance
Le sujet a été verrouillé.
Plus d'informations
22 Oct 2013 13:42 #10 par origon
Réponse de origon sur le sujet Gantry : Dysfonctionnement du template Virtuemart2
Bonjour,

En attendant et pour essayer de comprendre, pourrais-tu me dire comment tu trouves le lien qui renvoi vers la page que tu indiques ?
Sur la page du site je me rends compte que les deux boutons ouvrent la page "AskaQuestion" mais par contre je vois qu'il existe aussi une page CallForPrice" dans le template. C'est peut être simplement le lien à changer

<?php



// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

// Load & Include the MoWebSo Library
$mowebsoLibraryPath = JPATH_SITE . '/libraries/mowebso/mowebso.php';
require($mowebsoLibraryPath);

$component = 'com_virtuemart';

// Load The Settings File
$name = 'productdetails';
if($mowebso->isMoWebSoTemplate()) {
$templateInstance = JPATH_SITE . '/templates/' . $mowebso->templatename . '/html/com_virtuemart/settings/'.$mowebso->templatename.'/'.$name.'_settings.php';
} else {
$templateInstance = JPATH_SITE . '/templates/' . $mowebso->templatename . '/html/com_virtuemart/settings/default/'.$name.'_settings.php';
}
require_once $templateInstance; ?>

<?php // Let's See If We Found The Product
if (empty($this->product)) {
$mowebso->buildSectionStart($component,true); ?>
<h1 class="vm-title"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_NOT_FOUND') ?></h1>
<div class="spacer">
<?php // Output Continue Link
echo $this->continue_link_html;
return; ?>
</div>
<?php $mowebso->buildSectionEnd($component,'',true); ?>
<?php } ?>


<?php /* ////////////////////////////////////////////////////////////////
//////// Lets Start The Product Details If The Product Was Found ////////
////////////////////////////////////////////////////////////////////// */ ?>

<?php // Load The General CSS For The Product Details
$mowebso->addStyleSheet('default.css','templates/'.$mowebso->templatename.'/html/com_virtuemart/templates/assets/css/productdetails/general/'); ?>

<div class="productdetails-view productdetails">

<?php $mowebso->buildSectionStart($component,false,'','product-details'); ?>

<?php // Product Title ?>
<h1 id="product-name" class="vm-title"><?php echo $this->product->product_name ?></h1>
<?php // Load Gallery & Zoom Feature For Showing Big Picture
$mowebso->addInlineScript("
jQuery(document).ready(function($) {

// Lets Load The H1 Tag First And Move It After To Its Position
jQuery('div#product-details h1#product-name')
.prependTo('div#product-details div#product-information div.spacer')
.removeClass('vm-title')
.addClass('product-name');
});
"); // Product Title END ?>


<?php // Back To Category Button
// if ($this->product->virtuemart_category_id) {
// $catURL = JRoute::_('index.php?option=com_virtuemart&view=category&virtuemart_category_id='.$this->product->virtuemart_category_id);
// $categoryName = $this->product->category_name ;
// } else {
// $catURL = JRoute::_('index.php?option=com_virtuemart');
// $categoryName = jtext::_('COM_VIRTUEMART_SHOP_HOME') ;
// }
?>
<!--
<div class="back-to-category">
<a href="<?php echo $catURL ?>" class="product-details" title="<?php echo $categoryName ?>"><?php echo JText::sprintf('COM_VIRTUEMART_CATEGORY_BACK_TO',$categoryName) ?></a>
</div>
-->

<?php // Product Edit Link
if (!empty($this->edit_link)) {
echo $this->edit_link;
} // Product Edit Link END ?>

<?php // Output The Product Short Description
if (!empty($this->product->product_s_desc)) { ?>
<?php $mowebso->loadTemplate($this->product,$productShortDescription); ?>
<?php } ?>

<?php // Output Customfield 'ontop'
if (!empty($this->product->customfieldsSorted)) {?>
<div class="spacer">
<?php $this->product->customfieldposition = 'ontop';
$mowebso->loadTemplate($this->product,$productCustomFieldSortedOnTop); ?>
</div>
<?php } // END ?>

<div class="">
<div class="product-image-area">
<div class="spacer">

<?php // Output Product Images
if (!empty($this->product->images[0])) { ?>
<?php $mowebso->loadTemplate($this->product,$productImages); ?>
<?php } // END ?>

</div>
</div>
<div id="product-information" class="product-information-area">
<div class="spacer">

<?php // afterDisplayTitle Event
if (!empty($this->product->event->afterDisplayTitle)) { ?>
<div class="after-display-title">
<?php echo $this->product->event->afterDisplayTitle; ?>
</div>
<?php } ?>

<?php // Output Rating
if ($this->showRating) { ?>
<?php $mowebso->loadTemplate($this->rating,$productRating); ?>
<?php } // END ?>

<?php // Output The Product SKU
if (!empty($this->product->product_sku)) { ?>
<?php $mowebso->loadTemplate($this->product,$productSKU); ?>
<?php } ?>

<?php // Output Product Prices
if ($this->show_prices and (empty($this->product->images[0]) or $this->product->images[0]->file_is_downloadable == 0)) { ?>
<?php $mowebso->loadTemplate($this,$productPrices); ?>

<?php // Output A 'Call For Prices' Button If We Have No Prices
if (empty($this->product->prices) and VmConfig::get('askprice', 1)) { ?>
<?php $mowebso->loadTemplate($this->product,$productCallForPrice); ?>
<?php } ?>

<?php } // END ?>

<?php // Output Customfield 'normal'
if (!empty($this->product->customfieldsSorted)) {?>
<?php $this->product->customfieldposition = 'normal';
$mowebso->loadTemplate($this->product,$productCustomFieldSortedNormal); ?>
<?php } // END ?>

<?php // Output Customfield 'above_cart'
if (!empty($this->product->customfieldsSorted)) {?>
<?php $this->product->customfieldposition = 'above_cart';
$mowebso->loadTemplate($this->product,$productCustomFieldSortedAboveCart); ?>
<?php } // END ?>

<?php // Output Product Add To Cart
if (!VmConfig::get('use_as_catalog', 0) and !empty($this->product->prices)) { ?>
<div class="addtocart-area">
<form method="post" class="product js-recalculate" action="<?php echo JRoute::_('index.php'); ?>" >

<?php // Output Customfield 'Cart'
if (!empty($this->product->customfieldsCart)) {?>
<?php $mowebso->loadTemplate($this->product,$productCustomFieldCart); ?>
<?php } // END ?>

<?php // Output Customfield 'Child'
if (!empty($this->product->customsChilds)) {?>
<?php $mowebso->loadTemplate($this->product,$productCustomFieldChild); ?>
<?php } // END ?>

<?php // Display the quantity box
$stockhandle = VmConfig::get('stockhandle', 'none');
if (($stockhandle == 'disableit' or $stockhandle == 'disableadd') and ($this->product->product_in_stock - $this->product->product_ordered) < 1) {
$mowebso->loadTemplate($this->product,$productNotify);
} else {
$mowebso->loadTemplate($this->product,$productAddToCart);
} ?>

<?php // Display the add to cart button END ?>
<input type="hidden" class="pname" value="<?php echo $this->product->product_name ?>" />
<input type="hidden" name="option" value="com_virtuemart" />
<input type="hidden" name="view" value="cart" />
<noscript><input type="hidden" name="task" value="add" /></noscript>
<input type="hidden" name="virtuemart_product_id[]" value="<?php echo $this->product->virtuemart_product_id ?>" />
</form>
</div>
<?php } // END ?>

<?php // Output Product Stock
if (!empty($this->product->product_in_stock)) { ?>
<?php $mowebso->loadTemplate($this->product,$productStock); ?>
<?php } // END ?>

<?php // Output Product Availability
if (!empty($this->product->product_availability)) { ?>
<?php $mowebso->loadTemplate($this->product,$productAvailability); ?>
<?php } // END ?>

<?php // Output Ask A Question About This Product
if (VmConfig::get('ask_question', 1) == 1) { ?>
<?php $mowebso->loadTemplate($this,$productAskAQuestion); ?>
<?php } // END ?>

<?php // Output Manufacturer of the Product
if (VmConfig::get('show_manufacturers', 1) && !empty($this->product->virtuemart_manufacturer_id)) { ?>
<?php $mowebso->loadTemplate($this->product,$productManufacturer); ?>
<?php } // END ?>


</div>
</div>
<div class="clear"></div>

<?php // Product Navigation + Icons
if (VmConfig::get('product_navigation', 1) || VmConfig::get('show_emailfriend') || VmConfig::get('show_printicon') || VmConfig::get('pdf_button_enable')) { ?>
<div class="icons-navigation-area">

<?php // Product Navigation
if (VmConfig::get('product_navigation', 1)) {
$mowebso->loadTemplate($this->product,$productNavigation);
} // Product Navigation END ?>

<?php // PDF - Print - Email Icon
if (VmConfig::get('show_emailfriend') || VmConfig::get('show_printicon') || VmConfig::get('pdf_button_enable')) { ?>
<?php $mowebso->loadTemplate($this,$productIcons); ?>
<?php } // PDF - Print - Email Icon END ?>

<div class="clear"></div>
</div>
<?php } // PDF - Print - Email Icon END ?>
</div>

<?php // Output Customfield 'onbot'
if (!empty($this->product->customfieldsSorted)) {?>
<?php $this->product->customfieldposition = 'onbot';
$mowebso->loadTemplate($this->product,$productCustomFieldSortedOnBot); ?>
<?php } // END ?>


<?php $mowebso->buildSectionEnd($component,'',false); ?>

</div>

<?php
// if (is_array($this->productDisplayShipments)) {
// foreach ($this->productDisplayShipments as $productDisplayShipment) {
// echo $productDisplayShipment . '<br />';
// }
// }
// if (is_array($this->productDisplayPayments)) {
// foreach ($this->productDisplayPayments as $productDisplayPayment) {
// echo $productDisplayPayment . '<br />';
// }
// }
?>

<?php // Output Product Description in A Section
if (!empty($this->product->product_desc) || $this->product->product_box) {

$mowebso->buildSectionStart($component,true); ?>

<h4 class="vm-title"><?php echo JText::_('COM_VIRTUEMART_PRODUCT_DESC_TITLE') ?></h4>

<?php // Output The Product Description
$mowebso->loadTemplate($this->product,$productDescription); ?>

<?php // Product Packaging
if ($this->product->product_box) { ?>
<?php $mowebso->loadTemplate($this->product,$productPackaging); ?>
<?php } // Product Packaging END ?>

<?php $mowebso->buildSectionEnd($component,'',true);

} // Output Sub-Categorie END ?>




<?php // Ouput Reviews
if($this->showReview) { ?>
<?php $mowebso->buildSectionStart($component,true); ?>

<?php $mowebso->loadTemplate($this,$productReviews); ?>

<?php $mowebso->buildSectionEnd($component,'',true);?>
<?php } ?>

<?php // Customer Reviews
if($this->allowRating) { ?>

<?php $mowebso->buildSectionStart($component,true); ?>
<div class="review-form">
<h4 class="vm-title"><?php echo JText::_('COM_VIRTUEMART_WRITE_REVIEW') ?></h4>
<div class="spacer">
<form method="post" action="<?php echo JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$this->product->virtuemart_product_id.'&virtuemart_category_id='.$this->product->virtuemart_category_id) ; ?>" name="reviewForm" id="reviewform">

<?php // Ouput Review Form
if($this->showReview) { ?>
<?php $mowebso->loadTemplate($this,$productReviewForm); ?>
<?php } ?>

<input type="hidden" name="virtuemart_product_id" value="<?php echo $this->product->virtuemart_product_id; ?>" />
<input type="hidden" name="option" value="com_virtuemart" />
<input type="hidden" name="virtuemart_category_id" value="<?php echo JRequest::getInt('virtuemart_category_id'); ?>" />
<input type="hidden" name="virtuemart_rating_review_id" value="0" />
<input type="hidden" name="task" value="review" />
</form>
</div>
</div>

<?php $mowebso->buildSectionEnd($component,'',true);?>
<?php } ?>

<?php // Output Related Products in A Section
$relatedProductsObject = mowebsoVirtuemart2::getRelatedProducts($this->product->virtuemart_product_id);

if (!empty($relatedProductsObject)) {

$mowebso->buildSectionStart($component,true); ?>

<h4 class="vm-title"><?php echo JText::_('COM_VIRTUEMART_RELATED_PRODUCTS') ?></h4>

<?php // Output The Categories in A Grid Strcuture
$mowebso->gridStructure($relatedProductsObject,$relatedProductsSettings);

$mowebso->buildSectionEnd($component,'',true);

} // Output Related Products END ?>


<?php // Output Related Categories in A Section
$relatedCategoriesObject = mowebsoVirtuemart2::getRelatedCategories($this->product->virtuemart_product_id);

if (!empty($relatedCategoriesObject)) {

$mowebso->buildSectionStart($component,true); ?>

<h4 class="vm-title"><?php echo JText::_('COM_VIRTUEMART_RELATED_CATEGORIES') ?></h4>

<?php // Output The Categories in A Grid Strcuture
$mowebso->gridStructure($relatedCategoriesObject,$relatedCategories);

$mowebso->buildSectionEnd($component,'',true);

} // Output Related Categories END ?>

<?php // Output Sub-Categories in A Section
if (!empty($this->category->children) && VmConfig::get('showCategory', 1)) {

$mowebso->buildSectionStart($component,true); ?>

<h4 class="vm-title"><?php echo JText::_('COM_VIRTUEMART_SUBCATEGORIES') ?></h4>

<?php // Output The Categories in A Grid Strcuture
$mowebso->gridStructure($this->category->children,$subCategories);

$mowebso->buildSectionEnd($component,'',true);

} // Output Sub-Categorie END ?>
Le sujet a été verrouillé.
Plus d'informations
23 Oct 2013 01:21 #11 par tramber91
Réponse de tramber91 sur le sujet Gantry : Dysfonctionnement du template Virtuemart2
pas trop le temps en ce moment
je regarderai ce we
faut d'abord que j'ai une installe vm clean, franchement je prefere hikashop

@+

Pas de support en MP sans y être invité. Merci
Merci de vous conformer aux règles du forum. Un merci, Cela fait toujours plaisir ;)
www.en-toutes-lettres.fr - Digital
Le sujet a été verrouillé.
Plus d'informations
26 Oct 2013 16:22 #12 par tramber91
Réponse de tramber91 sur le sujet Gantry : Dysfonctionnement du template Virtuemart2
Bon,

comme promis j'ai regardé

Commençons par le template

le gros souci que je vois pour le futur c'est que ce template n'est pas compatible joomla 3 !!

2ème souci que j'ai remarqué à l'installation du template c'est que celui-ci joue avec les bibliothèques de base gantry ??
j'étais parti avec un gantry de base à jour version 2.5
j'ai installé ton template
j'ai du refaire une mise à jour gantry pour que celui-ci fonctionne
et la je sais pas si le developpeur du template a rajouté des trucs à ce niveau !!
Des nouvelles coté vendeur - leur site est en reconstruction !! ?

maintenant le pb au niveau popup
quoi qu'on dise ya conflit quelque part, je pense que c'est la fonction zoom au niveau produit car c'est le seul plus par rapport au virtuemart de base
Par défaut virtuemart utilise une fancy box, pour avoir l'image en grand et une lightbox gerer les popup, ask a price et question
au niveau de l'image, ton template remplace le popup image par le zoom, c'est ok, mais patatrac sur le reste

une solution pourrait être de supprimer l'overide virtuemart de ton template (en mettant __ devant com_vituemart


tu gardes ton template et tu as le VM de base
Bon c'est sur c'est pas beau au niveau catégorie

ou alors de juste supprimer l'overide au niveau product detail



et jouer sur les css (custom css) sur cette page (tu perds la fonction zoom)

ou alors ramener au niveau de l'overide le fichier par defaut de virtuemart

et le modifier pour rendre ce que tu veux


Concernant le lien ask prices

tu peux jouer sur le lien dans le fichier default_showprices.php


ligne
<a class="ask-a-question bold" href="<?php echo $this->askquestion_url ?>" rel="nofollow" ><?php echo JText::_ ('COM_VIRTUEMART_PRODUCT_ASKPRICE') ?></a>

Comme je l'ai dis J'irai pas plus loin sur mes recherches, déja que VM est plutot usine a gaz, avec un overide c'est maintenant une centrale nucléaire sans parler des maj qui peuvent casser toutes les modifs effectuées

Courage


@+

Pas de support en MP sans y être invité. Merci
Merci de vous conformer aux règles du forum. Un merci, Cela fait toujours plaisir ;)
www.en-toutes-lettres.fr - Digital
Le sujet a été verrouillé.
  • Vous ne pouvez pas: Créer un nouveau sujet.
  • Vous ne pouvez pas: Répondre au sujet.
  • Vous ne pouvez pas: Éditer votre message.
Modérateurs: tramber91sergestarter
Temps de génération de la page : 2.097 secondes