$this->config->seoArticles = $this->seoArticles;
}
+ public function writeGrandVisionCart(){
+ $this->lessVariables['import-cart-styles'] = 'grandvision';
+
+ $this->addJsLib('cookie', 'js/libs/jquery/jquery.cookie.js');
+ $this->addJsLib('grandvision', 'js/libs/fluidbook/cart/fluidbook.cart.grandvision.js');
+ $this->addJsLib('html2pdf', 'js/libs/html2pdf/html2pdf.min.js');
+
+ $cdir = $this->wdir . '/commerce/';
+ $file = $cdir . $this->book->parametres->basketReferences;
+ $this->config->basketReferences = wsUtil::excelToArrayKeyVars($file);
+
+ }
+
public function writeMIFCart()
{
$this->lessVariables['import-cart-styles'] = 'mif';
{
if ($this->config->basket) {
$this->addJsLib('cart', 'js/libs/fluidbook/fluidbook.cart.js');
- if ($this->config->basketManager === 'Puma') {
- return $this->writePumaCart();
- } else if ($this->config->basketManager === 'MIF') {
- return $this->writeMIFCart();
- }
switch ($this->config->basketManager) {
+ case 'Puma':
+ return $this->writePumaCart();
+ case 'MIF':
+ return $this->writeMIFCart();
+ case 'GrandVision':
+ return $this->writeGrandVisionCart();
case 'Remarkable':
$this->addJsLib('parsley', 'js/libs/parsley.min.js');
$this->addJsLib('cookie', 'js/libs/jquery/jquery.cookie.js');
case 11:
return new actionLink($id, $init, $compiler);
case 12:
+
if ($compiler->book->parametres->basketManager === 'Puma' || $compiler->book->parametres->basketManager === 'MIF') {
return new zoomProductLink($id, $init, $compiler);
}
return new zoomProductLink($id, $init, $compiler);
}
switch ($compiler->book->parametres->basketManager) {
+ case 'GrandVision':
+ return new grandVisionCartLink($id, $init, $compiler);
case 'JoueclubWishlist':
return new JoueclubWishlistLink($id, $init, $compiler);
case 'Remarkable':
{
$this->copyExternalFile($this->alternative);
$read = ($this->read_mode) ? 'r_' : '';
- return '#/multimedia/' . $read . md5($this->alternative . '/' . $this->extra.'/'.$this->id);
+ return '#/multimedia/' . $read . md5($this->alternative . '/' . $this->extra . '/' . $this->id);
}
public function getAdditionnalContent()
}
+class grandVisionCartLink extends normalLink
+{
+ public function getDefaultTooltip()
+ {
+ return 'More details';
+ }
+
+ public function getURL()
+ {
+ return '#/cart/details/' . $this->to;
+ }
+}
+
class JoueclubWishlistLink extends normalLink
{
protected $role = 'link';