Jump to content
xt:Commerce Community Forum

ahuizotl

Members
  • Content Count

    38
  • Joined

  • Last visited

  1. Hallo, ich habe einen Veyton-Shop neu eingerichtet, lief alles gut. Dann habe ich die Datenbank eines bestehenden Shops importiert. Nun erscheint "- license not matching, contact support -". Wird die license.txt im Ordner /lic irgendwo mit einem Datenbankeintrag abgeglichen, und wenn ja, mit welchem? Wenn ich die modifizierten Plugins etc. des bestehenden Shops benutzen will, kann ich die einfach hineinkopieren? Danke, Barry
  2. hallo, wie ich sehe, werden die variablen in box_cart.html {if $smarty.const._CUST_STATUS_SHOW_PRICE eq '1'} {if $show_cart_content == true} {if $data_count == 1} {$data_count} product, {$cart_total} {else} {$data_count} products, {$cart_total} {/if} {/if} {/if} in der cart.php generiert: defined('_VALID_CALL') or die('Direct Access is not allowed.'); if (is_object($_SESSION['cart']) && count($_SESSION['cart']->show_content) > 0){ $tpl_data = array('cart_data' => $_SESSION['cart']->show_content, 'data_count' => count($_SESSION['cart']->show_content), 'content_count' => $_SESSION['cart']->content_count, 'cart_tax' => $_SESSION['cart']->content_tax, 'cart_total' => $_SESSION['cart']->content_total['formated'], 'cart_total_weight' => $_SESSION['cart']->weight, 'show_cart_content'=>true); global $system_shipping_link; $shipping_link = $system_shipping_link->shipping_link; if ($shipping_link!='') { $tpl_data = array_merge($tpl_data,array('shipping_link'=>$shipping_link)); } }else{ $tpl_data = array('show_cart_content'=>false); } $show_box = true; also: ein array heisst $tpl_data und ich kann in der html-datei seine elemente direkt ansprechen, z.b. {$data_count}, s.o.? bei mir geht das nicht. dankbar für tipps, barry
  3. was? habe ich diesen thread zu unrecht als solved markiert? ich habe ihn doch angefangen. was heisst solved überhaupt? doch, dass alle sehen können, dass es hier eine lösung gibt, oder kann man den thread dann nicht mehr finden? sorry, dass ich hier was beitrage, echt.
  4. ...und entsprechend in der class.cross_selling.php function getCrossSellingProductListing($products_id) { global $xtPlugin, $xtLink, $db; $products_id = (int)$products_id; if ($products_id=='') return false; $this->sql_products->setPosition('cross_selling'); $this->sql_products->setSQL_TABLE("INNER JOIN " . TABLE_PRODUCTS_CROSS_SELL . " pc ON p.products_id = pc.products_id_cross_sell"); $this->sql_products->setSQL_WHERE("and pc.products_id ='".$products_id."'"); $this->sql_products->setSQL_WHERE("and pc.products_id_cross_sell=p.products_id"); $query = $this->sql_products->getSQL_query(); $rs = $db->CacheExecute($query); if ($rs->RecordCount()==0) return false; $cross_sell_products = array(); /*added code*/ $record = $db->Execute("SELECT products_id FROM ".TABLE_PRODUCTS." WHERE products_master_model != ''"); $data=array(); if($record->RecordCount() > 0){ while(!$record->EOF){ $data[] = $record->fields['products_id']; $record->MoveNext(); } } /*added end*/ while (!$rs->EOF) { $cross_sell_products[] = $rs->fields['products_id']; $rs->MoveNext(); } /*added code*/ $out=array(); foreach($cross_sell_products as $v){ if(in_array($v, $data)){ $master=array(); $masterid=array(); $rec = $db->Execute("SELECT products_master_model FROM ".TABLE_PRODUCTS." WHERE products_id = '".$v."'"); if($rec->RecordCount() > 0){ //echo "ja"; while(!$rec->EOF){ $master[] = $rec->fields['products_master_model']; $rec->MoveNext(); } $rec = $db->Execute("SELECT products_id FROM ".TABLE_PRODUCTS." WHERE products_model = '".$master[0]."'"); if($rec->RecordCount() > 0){ while(!$rec->EOF){ $masterid[] = $rec->fields['products_id']; $rec->MoveNext(); } if(!in_array($masterid[0], $out)) $out[] = $masterid[0]; } } }else $out[]=$v; } $products=$out; /*added end*/ // shuffle if more than max if (XT_CROSS_SELLING_MAX_DISPLAY<$rs->RecordCount()) { shuffle($cross_sell_products); $cross_sell_products = array_slice($cross_sell_products, 0,XT_CROSS_SELLING_MAX_DISPLAY); } $module_content = array(); foreach ($cross_sell_products as $key => $val) { $size = 'default'; $product = & new product($val,$size); $module_content[] = $product->data; } return $module_content; } ...ich glaube, das ist gar nicht nötig, denn man kann ohnehin im cross-selling keine slaveartikel als ziel wählen.
  5. habe die class.auto_cross_sell.php angepasst: function getAutoCrossSellProductListing($products_id='') { global $xtPlugin, $xtLink, $db; $products_id = (int)$products_id; if ($products_id=='') return false; /*added code*/ //$quer = "SELECT products_id, products_master_model FROM ".TABLE_PRODUCTS." WHERE products_master_model!=''"; //$resus = $db->CacheExecute($quer); /*added end*/ $query = "SELECT bop.products_id FROM ".TABLE_ORDERS_PRODUCTS." aop, ".TABLE_ORDERS_PRODUCTS." bop WHERE aop.products_id='".$products_id."' and aop.products_id!=bop.products_id and aop.orders_id = bop.orders_id group by bop.products_id"; $rs = $db->CacheExecute($query); if ($rs->RecordCount()==0) return false; $products = array(); /*added code*/ $record = $db->Execute("SELECT products_id FROM ".TABLE_PRODUCTS." WHERE products_master_model != ''"); $data=array(); if($record->RecordCount() > 0){ while(!$record->EOF){ $data[] = $record->fields['products_id']; $record->MoveNext(); } } /*added end*/ while (!$rs->EOF) { $products[] = $rs->fields['products_id']; $rs->MoveNext(); } /*added code*/ $out=array(); foreach($products as $v){ if(in_array($v, $data)){ $master=array(); $masterid=array(); $rec = $db->Execute("SELECT products_master_model FROM ".TABLE_PRODUCTS." WHERE products_id = '".$v."'"); if($rec->RecordCount() > 0){ //echo "ja"; while(!$rec->EOF){ $master[] = $rec->fields['products_master_model']; $rec->MoveNext(); } $rec = $db->Execute("SELECT products_id FROM ".TABLE_PRODUCTS." WHERE products_model = '".$master[0]."'"); if($rec->RecordCount() > 0){ while(!$rec->EOF){ $masterid[] = $rec->fields['products_id']; $rec->MoveNext(); } if(!in_array($masterid[0], $out)) $out[] = $masterid[0]; } } }else $out[]=$v; } $products=$out; /*added end*/ // shuffle if more than max if (XT_ALSO_PURCHASED_MAX_DISPLAY<$rs->RecordCount()) { shuffle($products); $products = array_slice($products, 0,XT_AUTO_CROSS_SELL_MAX_DISPLAY); } $module_content = array(); $inmodcont=array(); $size = 'default'; foreach ($products as $key => $val) { $product = & new product($val,$size); if ($product->is_product){ $module_content[] = $product->data; } } return $module_content; } /** * auto cross selling for shopping cart display * */ function getAutoCrossSellProductListingCart() { global $xtPlugin, $xtLink, $db; if (count($_SESSION['cart']->content)<1) return false; $ids = array(); foreach ($_SESSION['cart']->content as $key => $val) { $ids[]=$val['products_id']; } $query = "SELECT bop.products_id FROM ".TABLE_ORDERS_PRODUCTS." aop, ".TABLE_ORDERS_PRODUCTS." bop WHERE aop.products_id IN (".implode(',',$ids).") and aop.products_id!=bop.products_id and aop.orders_id = bop.orders_id group by bop.products_id"; $rs = $db->CacheExecute($query); if ($rs->RecordCount()==0) return false; $products = array(); /*added code*/ $record = $db->Execute("SELECT products_id FROM ".TABLE_PRODUCTS." WHERE products_master_model != ''"); $data=array(); if($record->RecordCount() > 0){ while(!$record->EOF){ $data[] = $record->fields['products_id']; $record->MoveNext(); } } /*added end*/ while (!$rs->EOF) { if (!in_array($rs->fields['products_id'],$ids)) $products[] = $rs->fields['products_id']; $rs->MoveNext(); } /*added code*/ $out=array(); foreach($products as $v){ if(in_array($v, $data)){ $master=array(); $masterid=array(); $rec = $db->Execute("SELECT products_master_model FROM ".TABLE_PRODUCTS." WHERE products_id = '".$v."'"); if($rec->RecordCount() > 0){ //echo "ja"; while(!$rec->EOF){ $master[] = $rec->fields['products_master_model']; $rec->MoveNext(); } $rec = $db->Execute("SELECT products_id FROM ".TABLE_PRODUCTS." WHERE products_model = '".$master[0]."'"); if($rec->RecordCount() > 0){ while(!$rec->EOF){ $masterid[] = $rec->fields['products_id']; $rec->MoveNext(); } if(!in_array($masterid[0], $out)) $out[] = $masterid[0]; } } }else $out[]=$v; } $products=$out; /*added end*/ // shuffle if more than max if (XT_ALSO_PURCHASED_MAX_DISPLAY<$rs->RecordCount()) { shuffle($products); $products = array_slice($products, 0,XT_AUTO_CROSS_SELL_MAX_DISPLAY); } $module_content = array(); foreach ($products as $key => $val) { $size = 'default'; $product = & new product($val,$size); if ($product->is_product) $module_content[] = $product->data; } return $module_content; }
  6. hab's gefunden: function getManufacturerSortDropdown($default) { // TODO } muss ich wohl selber ran...
  7. hallo, ich würde gern die artikel eines herstellers per dropdown sortieren können, wie in der normalen produktübersicht. weiß jemand, wie? dankbar für tipps, barry
  8. hallo, ich habe um entweder cross selling oder auto cross sell anzuzeigen die class_auto_cross_sell.php folgendermaßen modifiziert: function _display($products_id='',$cart=false) { global $xtPlugin, $xtLink, $db; /*added code*/ include("../../xt_cross_selling/classes/class.cross_selling.php"); $xs=new cross_selling(); if($products_id!=='') $xsell = $xs->getCrossSellingProductListing($products_id); if (!$xsell){ /*added end*/ if (!$cart) { $products_id = (int)$products_id; if ($products_id=='') return false; $module_content = $this->getAutoCrossSellProductListing($products_id); } else { $module_content = $this->getAutoCrossSellProductListingCart(); } if (!$module_content) return false; $tpl_data = array('_auto_cross_sell'=>$module_content); $tmp_data = ''; $tpl = 'auto_cross_sell.html'; $template = new Template(); $template->getTemplatePath($tpl, 'xt_auto_cross_sell', '', 'plugin'); $tmp_data = $template->getTemplate('xt_auto_cross_sell_smarty', $tpl, $tpl_data); return $tmp_data; /*added code*/ } /*added end*/ }
  9. hallo, es sieht nicht so schön aus wenn in den produktempfehlungen der gleiche artikel mehrfach auftaucht (z.b. ein mal in rot, in grün etc.), deshalb: kann man die slaveartikel aus dem cross selling heraus nehmen? dankbar für tipps, barry
  10. hallo, ich habe für cross selling "recommended products" und auto cross sell "customers also purchased" verschiedene hooks vergeben, müsste aber folgendes abfragen: wenn der artikel ein cross selling produkt ist, wird cross selling angezeigt, ansonsten auto cross selling. dankbar für tipps, barry
  11. hallo, bei mir geht in der admin für produkte das cross selling popup auf, zeigt aber nichts an. woran kann das liegen? im frontend kriege ich "customers also bought" richtig angezeigt.
  12. hallo, ich hätte gern das cross marketing modul in einer box statt einfach unten im content. was muss ich denn dafür tun? danke, barry
  13. hallo, ich habe gelesen, es gab früher im backend (mein shop) einen menüpunkt, der einzustellen erlaubte, ob man in der kategoriebox die anzahl der artikel in der jeweiligen kategorie angezeigt bekommt. gibt es das noch und wenn nicht, was kann ich tun, damit es das gibt? danke, barry
  14. hallo, ich gerate gerade mächtig in verzug weil ich eins leider nicht weiß: wo im dateisystem liegt denn das kontaktformular, welche dateien gehören dazu und wie kann ich es in eine contentseite einbinden? 1000 dank, barry
×
×
  • Create New...