Ir para conteúdo

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

b0t.exe

[MAGENTO] Problema com Busca e Rolagem

Recommended Posts

Olá galera, preciso da ajuda de vocês...

 

Estou com problema na busca do meu site Magento, quando faço alguma busca, ele trás todos os produtos e não a palavra que eu pesquisei...

 

e quando eu vou usar a rolagem do mouse(Scroll) não desce a página, só desce se eu apertar a seta pra baixo...

 

 

Compartilhar este post


Link para o post
Compartilhar em outros sites

  • Conteúdo Similar

    • Por Carlos Antoliv
      Senhores, tudo bem?
       
      Tô numa dúvida aqui... tá matando.
      Estou tentando contar a quantidade de itens do carrinho de compras.
       
      Este aqui é o input que aparece a quantidade de itens:
      <td><input type="text" name="prod[<?php echo $result['id']?>]" value="<?php echo $qtdProd = $result['quantity']?>" size="1"  />                          </td>  
      Aparece normalmente a quantidade de itens. Ex: arroz   2  <<< este 2 fica dentro do input, onde posso alterá-lo.
      Minha ideia é mostrar na tela a quantidade total de itens que estão no carrinho.
       
      To usando esse código aqui pra aparecer o número total.... e até funciona:
       
                         <?php                                     if(isset($_SESSION['carrinho'])){                                     $amount = 0;                                     $count = 0;                                     $size = count($_SESSION['carrinho']);                                                                         foreach($_SESSION['carrinho'] as $data){                                     $count++;                                     $amount += $data['quantity'];                                     if($size == $count){                                     echo "TOTAL = $amount";                                     }                                 }                             }                                 ?>  
      O problema é que está exibindo o seguinte erro:
      Warning: Illegal string offset 'quantity' in C:\...\www\sistema\carrinho-de-compra\carrinho.php on line 90
       
      Erro na linha 90, no caso, neste linha aqui: 
          $amount += $data['quantity'];
       
      Daí travei um pouco.
       
      Alguém que poderia dar força ? Tá osso aqui.
      tmj
       
       
    • Por tony_lu
      Ola pessoal, preciso de uma ajuda!
      Tenho uma loja virtual na brasil na web onde esta integrado uma conta do pagseguro. Acontece que a mesma empresa quer uma outra loja, porém na plataforma Tray e com pagamento via Pagseguro! Então estou na duvida, posso integrar a mesma conta pagseguro com o mesmo token para as duas lojas? Não pode dar conflito?
      A plataforma Brasil na Web eu coloco para configurar o token e o email de cadastro do Pagseguro, na loja Tray tem que colocar além do token, cadastrar uma url la dentro do pagseguro, acho que é uma url de retorno. Então meu receio é dar conflito! Qual seria a melhor solução? Aguardo obrigado
    • Por Hamanom007
      Loja Virtual criada em 2008, nosso querido PHP atualizou e fico descontinuada, a loja não funcionava, mas com muito esforço consegui, e agora volto a ter sua função de comprar e de alertar o responsável que fizeram um novo pedido.

      Sendo assim sua funcionalidade básica volto ao normal.

      Porem á erro que não estou conseguindo resolver.
      Os meus estudos sobre a falha aponta para: 
      Atualize o ISC e magic_quotes_runtime_on 
      Mas como disse, são só conteúdos que tenho lido, porem não sei se estou no caminho correto.

      O erro aparecendo é esse:
       
      Strict Standards: Declaration of ISC_FORMFIELD_CHECKBOXSELECT::getFieldRequestValue() should be compatible with ISC_FORMFIELD_BASE::getFieldRequestValue($fieldName = '') in /home2/jajajavai/public_html/loja/lib/formfields/formfield.checkboxselect.php on line 295 Configuração do PHP INI:


       Quem poder me apontar uma direção fico muito agradecido Obrigado a todos.


      Aqui está o arquivo do alerta:

       
      <?php error_reporting(0); class ISC_FORMFIELD_CHECKBOXSELECT extends ISC_FORMFIELD_BASE { /** * Constructor * * Base constructor * * @access public * @param mixed $fieldId The optional form field Id/array * @param bool $copyField If TRUE then this field will copy the field $fieldId EXCEPT for the field ID. Default is FALSE * @return void */ public function __construct($formId, $fieldId='', $copyField=false) { $defaultExtraInfo = array( 'class' => '', 'style' => '', 'options' => array() ); parent::__construct($formId, $defaultExtraInfo, $fieldId, $copyField); } /** * Get the form field description * * Static method will return an array with the form field name and description as the elements * * @access public * @return array The description array */ public static function getDetails() { return array( 'name' => GetLang('FormFieldSingleCheckBoxName'), 'desc' => GetLang('FormFieldSingleCheckBoxDesc'), 'img' => 'checkbox.png', ); } /** * Get the requested (POST or GET) value of a field * * Method will search through all the POST and GET array values are return the field * value if found. Method will the POST and GET arrays in order based on the PHP INI * value 'variables_order' (the GPC order) * * @access public * @return mixed The value of the form field, if found. Empty string if not found */ public function getFieldRequestValue() { $options = parent::getFieldRequestValue(); if (!is_array($options)) { $options = array($options); } $options = array_filter($options); $options = array_values($options); return $options; } /** * Run validation on the server side * * Method will run the validation on the server side (will not run the JS function type) and return * the result * * @access public * @param string &$errmsg The error message if the validation fails * @return bool TRUE if the validation was successful, FALSE if it failed */ public function runValidation(&$errmsg) { if (!parent::runValidation($errmsg)) { return false; } $values = $this->getValue(); if ($values == '') { return true; } /** * Just need to check that all our selected values actually existing within our options array */ if (empty($this->extraInfo['options'])) { return true; } foreach ($values as $value) { if (!in_array($value, $this->extraInfo['options'])) { $errmsg = sprintf(GetLang('CustomFieldsValidationInvalidSelectOption'), $this->label); return false; } } return true; } /** * Set the field value * * Method will set the field value, overriding the existing one * * @access public * @param mixed $value The default value to set * @param bool $setFromDB TRUE to specify that this value is from the DB, FALSE from the request. * Default is FALSE * @param bool $assignRealValue TRUE to filter out any values that is not in the options array, * FALSE to set as is. Default is TRUE */ public function setValue($value, $setFromDB=false, $assignRealValue=true) { if (!is_array($value)) { $value = array($value); $value = array_filter($value); } if ($assignRealValue && !empty($this->extraInfo['options'])) { $filtered = array(); foreach ($value as $key => $val) { $index = array_isearch($val, $this->extraInfo['options']); if ($index !== false) { $filtered[$key] = $this->extraInfo['options'][$index]; } } $value = $filtered; } parent::setValue($value, $setFromDB); } /** * Set the field value by the indexes in the options array * * Method will set the value based upon the indexes in the options array. Every values in the * array $indexes will correspond to the index in the options array * * @access public * @param array $indexes The array of indexes * @return NULL */ public function setValueByIndex($indexes) { if (!is_array($indexes)) { $indexes = array($indexes); } $indexes = array_filter($indexes, 'is_numeric'); if (empty($indexes) || empty($this->extraInfo['options'])) { return; } $newValue = array(); foreach ($indexes as $index) { if (array_key_exists($index, $this->extraInfo['options'])) { $newValue[] = $this->extraInfo['options'][$index]; } } $this->setValue($newValue); } /** * Set the select options * * Method will set the select option for the frontend select box, overriding any perviously set options * * @access public * @param array $options The options array with the key as the options value and the value as the options text * @return bool TRUE if the options were set, FALSE if options were not an array */ public function setOptions($options) { if (!is_array($options)) { return false; } else { $options = array_values($options); } $this->extraInfo['options'] = $options; } /** * Build the frontend HTML for the form field * * Method will build and return the frontend HTML of the loaded form field. The form field must be * loaded before hand * * @access public * @return string The frontend form field HTML if the form field was loaded beforehand, FALSE if not */ public function loadForFrontend() { if (!$this->isLoaded()) { return false; } /** * Make sure that our value is an array */ $this->setValue($this->value); /** * Do we have options (hope so)? */ $GLOBALS['FormFieldCheckBoxes'] = ''; if (!empty($this->extraInfo['options'])) { $id = $this->getFieldId(); $name = $this->getFieldName(); $args = ''; if ($this->extraInfo['class'] !== '') { $args .= 'class="' . isc_html_escape($this->extraInfo['class']) . ' FormFieldOption" '; } else { $args .= 'class="FormFieldOption" '; } if ($this->extraInfo['style'] !== '') { $args .= 'style="' . isc_html_escape($this->extraInfo['style']) . '" '; } $checkboxes = array(); $options = array_values($this->extraInfo['options']); foreach ($this->extraInfo['options'] as $key => $val) { $newId = $id . '_' . $key; $newName = $name . '[' . $key . ']'; $html = '<label for="' . $newId . '">'; $html .= '<input type="checkbox" id="' . $newId . '" name="' . $newName . '" value="' . isc_html_escape($val) . '" ' . $args; /** * Is this one of our values? */ if (in_array($val, $this->value)) { $html .= ' checked="checked"'; } $html .= ' /> ' . isc_html_escape($val) . '</label>'; $checkboxes[] = $html; $key++; } $GLOBALS['FormFieldCheckBoxes'] = implode('<br />', $checkboxes); } $GLOBALS['FormFieldDefaultArgs'] = 'id="' . isc_html_escape($this->getFieldId()) . '" class="FormField"'; return $this->buildForFrontend(); } /** * Build the backend HTML for the form field * * Method will build and return the backend HTML of the form field * * @access public * @return string The backend form field HTML */ public function loadForBackend() { $GLOBALS['FormFieldClass'] = isc_html_escape($this->extraInfo['class']); $GLOBALS['FormFieldStyle'] = isc_html_escape($this->extraInfo['style']); $GLOBALS['FormFieldOptions'] = implode("\n", $this->extraInfo['options']); return parent::buildForBackend(); } /** * Save the field record * * Method will save the field record into the database * * @access protected * @param array $data The field data record set * @param string &$error The referenced variable to store the error in * @return bool TRUE if the field was saved successfully, FALSE if not */ public function saveForBackend($data, &$error) { return parent::saveForBackend($data, $error); } }  
    • Por luc.oliveira1984
      Olá pessoal, sou novo por aqui e estou precisando da ajuda de vcs!
       
      Tenho um modulo de marketplace (webkul) e preciso alterar a quantidade de exibição de anunciantes de 4 para 20 por página.
       
      Alguem poderia me ajuda? :)
       
      Minha página de anuncinates é: https://lenda360.com.br/marketplace/seller/sellerlist/

      Meu arquivo sellerlist contem:
       
      <?php
      /**
      * Webkul Software.
      *
      * @category Webkul
      * @package Webkul_Marketplace
      * @author Webkul
      * @copyright Copyright (c) Webkul Software Private Limited (https://webkul.com)
      * @license https://store.webkul.com/license.html
      */
      $helper = $this->helper(\Webkul\Marketplace\Helper\Data::class);
      $banner_display = $helper->getDisplayBanner();
      $banner_image = $helper->getBannerImage();
      $banner_content = $helper->getBannerContent();
      $marketplacebutton = $helper->getMarketplacebutton();
      $sellerlist_top_label = $helper->getSellerlisttopLabel();
      $sellerlist_bottom_label = ($helper->getSellerlistbottomLabel());
      $paramData = $this->getRequest()->getParams();
      if (!isset($paramData['shop'])) {
      $paramData['shop'] = '';
      }
      $sellerAccountUrl = $block->getUrl(
      'marketplace/account/becomeseller',
      ["_secure" => $this->getRequest()->isSecure()]
      );
      if (!$helper->isCustomerLoggedIn()) {
      $sellerAccountUrl = $block->getUrl(
      'customer/account/create',
      ["_secure" => $this->getRequest()->isSecure()]
      );
      }
      ?>
      <div class="wk-mp-design wk-mp-landingpage">
      <?php
      if ($banner_display) {?>
      <div class="wk-mp-banner-container">
      <div class="wk-mp-banner">
      <div class="wk-mp-header">
      <h1><?= $block->escapeHtml($marketplacebutton); ?></h1>
      <h2>
      <?= /* @noEscape */ $block->getCmsFilterContent($banner_content)?>
      </h2>
      <p>
      <a href="<?= $block->escapeUrl($block->getUrl('marketplace/account/becomeseller/', ['_secure' => $this->getRequest()->isSecure()])); ?>">
      <button class="button wk-mp-landing-button">
      <span>
      <span>
      <strong><?= $block->escapeHtml($marketplacebutton); ?></strong>
      </span>
      </span>
      </button>
      </a>
      </p>
      </div>
      </div>
      </div>
      <?php
      } ?>
      <h1 class="wk-marketplace-label"><?= $block->escapeHtml($sellerlist_top_label) ?></h1>
      <style>

      </style>
      <div clas="wk-srach-wrapper">
      <form method="get" action="<?= $block->escapeUrl($block->getUrl('marketplace/seller/sellerlist', ['_secure' => $this->getRequest()->isSecure()]))?>" id="search_mini_form" class="wk-search no-p" style="">
      <div class="control">
      <input id="sellersearch" type="search" name="shop" value="<?= $block->escapeHtml($paramData['shop'])?>" class="input-text required-entry" maxlength="128" placeholder="<?= $block->escapeHtml(__('Search sellers by shop name from here'))?>..." autocomplete="off" style="width:100%;border:1px solid #ccc;float:left;">
      <button type="submit" title="Search" class="button"><span class="span"><span><?= $block->escapeHtml(__('Search')) ?></span></span></button>
      </div>
      </form>
      </div>
      <div class="wk-mp-sellerlist-container" style="display:inline-block;padding: 0;padding-top: 20px;width: 100%;">
      <?php
      if (count($block->getSellerCollection())==0) { ?>
      <div class="wk-emptymsg">
      <?= $block->escapeHtml(__('No Seller Available')) ?>
      </div>
      <?php
      } else {?>
      <ul>
      <?php
      foreach ($block->getSellerCollection() as $seller_coll) {
      $seller_id = $seller_coll->getSellerId();
      $seller_product_count = 0;
      $profileurl = $seller_coll->getShopUrl();
      $shoptitle = '';
      $logo="noimage.png";
      $seller_product_count = $helper->getSellerProCount($seller_id);
      $shoptitle = $seller_coll->getShopTitle();
      $logo=$seller_coll->getLogoPic()==''?"noimage.png":$seller_coll->getLogoPic();
      if (!$shoptitle) {
      $shoptitle = $profileurl;
      }
      $logo=$helper->getMediaUrl().'avatar/'.$logo;
      ?>
      <li>
      <div class="wk-mp-sellerlist-wrap">
      <div class="wk-sellerlist-divide1">
      <a href="<?= $block->escapeUrl($helper->getRewriteUrl('marketplace/seller/profile/shop/'.$profileurl));?>" title="<?= $block->escapeHtml(__("View Seller's Shop")) ?>"><img src="<?= $block->escapeUrl($logo) ?>"></a>
      </div>
      <div class="wk-sellerlist-divide2">
      <div>
      <a href="<?= $block->escapeUrl($helper->getRewriteUrl('marketplace/seller/profile/shop/'.$profileurl));?>" title="<?= $block->escapeHtml(__("View Seller's Shop")) ?>">
      <strong><?= $block->escapeHtml($shoptitle) ?></strong>
      </a>
      </div>
      <div><?= $block->escapeHtml(__('%1 Total Products', $seller_product_count)) ?></div>
      <a href="<?= $block->escapeUrl($helper->getRewriteUrl('marketplace/seller/collection/shop/'.$profileurl));?>">
      <button class="button" title="<?= $block->escapeHtml(__("View Seller's Collection")) ?>">
      <span>
      <span>
      <?= $block->escapeHtml(__('View All')); ?>
      </span>
      </span>
      </button>
      </a>
      </div>
      </div>
      </li>
      <?php
      }?>
      </ul>
      <?php
      }?>
      </div>
      <?php if ($block->getPagerHtml()): ?>
      <div class="order-products-toolbar toolbar bottom"><?= $block->getPagerHtml(); ?></div>
      <?php endif ?>
      <h1 class="wk-marketplace-label"><?= /* @noEscape */ $sellerlist_bottom_label ?></h1>
      <a href="<?= $block->escapeUrl($sellerAccountUrl)?>">
      <button class="button wk-mp-landing-button">
      <span>
      <span>
      <strong><?= $block->escapeHtml($marketplacebutton); ?></strong>
      </span>
      </span>
      </button>
      </a>
      </div>
      <script>
      require([
      "jquery",
      "mage/mage",
      ], function($){
      $('.page-title-wrapper').hide();
      $('.wk-mp-banner').css('background-image','url("<?= $block->escapeUrl($banner_image) ?>")');
      });
      </script>
       
    • Por freiitaz
      Olá pessoal, é o seguinte, eu estou com um projeto de um site por assinatura,o site basicamente precisaria de 2 objetivos importante, que não estou conseguindo achar um caminho para cria-lo.
      1 - A função de planos por assinatura onde o pagamento ocorre tudo automaticamente, e também possibilitando eu dar benefícios por assinatura por alguns dias para os usuários novos, onde sera importante ter o CPF registrado para que não ocorra múltiplas contas fakes
      2 - O site sera para divulgações de perfis, então toda pessoa que se cadastrar, apos o preenchimento do perfil e aprovação do pagamento, a pessoa estará a amostra em um feed de perfils, ela poderá adicionar fotos, sobre, nome, dados de contato, localização etc...
       
      Gostaria de uma ajuda para poder desenvolver esse site, eu costumo trabalhar muito com wordpress, então se alguém conhecer alguma ferramenta, plugin, criador de sites .... podendo me da um caminho para que eu possa criar esse site  agradeço muito !!!!
×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.