Search found 52 matches

Search found 52 matches

Re: [SOLVED] shipping price column in db?

In this line I want to put the shipping cost of opencart, but I can't get it from the database, I don't know how to put together the code to get it. :( $suborder_total = $suborder_sub_total + $suborder_shipping_total; but I found something interesting: In this part I see that apparently it gets data...

Jump to post
  • Tue Jun 16, 2020 7:07 pm
  • Replies 4
  • Views 348
Re: shipping price column in db

I have this function that uses parameters other than opencart, but I found that maybe there is the key to get the shipping value of an order, looking at codes ... private function _getOrderTotals($order_id,$initial_order_total) { // totals @todo $order_info = $this->model_account_order->getOrder($or...

Jump to post
  • Tue Jun 16, 2020 7:03 pm
  • Replies 4
  • Views 348
Re: shipping price column in db

All line items on the order are stored in the "order_total" table. You can find the relevant lines using the "order_id" column, then loop through the rows you find, and pick the one with code "shipping". The cost of the shipping will be stored in the "value" column. I have no knowledge in php or pr...

Jump to post
  • Tue Jun 16, 2020 6:58 pm
  • Replies 4
  • Views 348
Re: [Mod]Displaying something other than $0 if no price is given

I'm not sure if this board is still open. I'm trying to adapt this code for 1.5.5.1 if ($format && (float)$value == 0) { $trace = debug_backtrace(); if (isset($trace[1]['class']) && $trace[1]['class'] != 'ControllerModuleCart') { return 'FREE'; } } The problem I'm having is that I would like to add...

Jump to post
  • Sun Jun 14, 2020 1:32 pm
  • Replies 63
  • Views 47097
Re: Descuentos por marca

jcarlosc wrote:
Mon Jul 04, 2016 11:49 pm
Hola a todos. Sabríais decirme de qué forma se podría hacer un descuento en todos los productos de una marca en concreto?

Muchas gracias, saludos.
usando cupones de descuento y configurandolos por fabricante no se si a años luz de la pregunta ayude a otros.

Jump to post
  • Thu Nov 14, 2019 12:20 pm
  • Replies 3
  • Views 1255
Re: Descuentos por fabricantes

Marcosrom wrote:
Fri Feb 22, 2013 12:41 am
Comoo dice el titulo. Hay alguna forma de aplicar descuentos por grupos de fabricantes?

Por ejemplo, todos los productos de Apple.

Un saludo
usando cupones de descuento y configurandolos por fabricante no se si a años luz de la pregunta ayude a otros.

Jump to post
  • Thu Nov 14, 2019 12:18 pm
  • Replies 3
  • Views 706
Re: Adoption of WebP image format

I will try with this: public function webpSupport() { $mod = 'rm_lwi'; $support = false; if ($this->config->get($mod . '_status') && $this->config->get($mod . '_webp_status')) { $gd = gd_info(); if ($gd['WebP Support']) { // if browser accepts webp images if (isset($this->request->server['HTTP_ACCEP...

Jump to post
  • Wed Jun 05, 2019 11:27 am
  • Replies 18
  • Views 8281
Re: Adoption of WebP image format

ok the error follow:
PHP Notice: Undefined index: HTTP_ACCEPT in /home/........./public_html/system/storage/modification/catalog/model/tool/image.php on line 8

Code: Select all

if ($gd['WebP Support'] && (strpos( $_SERVER['HTTP_ACCEPT'], 'image/webp' ) !== false )) {
I do not know how to solve it

Jump to post
  • Wed Jun 05, 2019 11:21 am
  • Replies 18
  • Views 8281
Re: Adoption of WebP image format

I have a mod from a developer, which generates a constant error every certain hour of the day, and it has to do with the same thing that you are talking about in this thread, the code with problems is this, public function webpSupport() { $mod = 'rm_lwi'; $support = false; if ($this->config->get($mo...

Jump to post
  • Wed Jun 05, 2019 11:05 am
  • Replies 18
  • Views 8281
Re: Contenido de la Pagina de Inicio

siempre he tenido curiosidad sobre para que sirve la opción "UBICACION" donde siempre aparece la pagina "default" seleccionada en la pestaña "GENERAL" de la configuracion de la tienda? esta debajo de theme o Tema, donde seleccionamos al platilla de nuestra tienda.

Jump to post
  • Wed Apr 03, 2019 9:18 am
  • Replies 4
  • Views 1751
Re: OC 2.3 slow when clicking on modifications

Johnathan wrote:
Wed Oct 25, 2017 5:44 am
Pro tip: you probably have a huge ocMod log file. If you delete that in the "Log" tab it should speed up to a normal page load speed.
wow 3 year search solution for this problem and you resolved, all ok thk master god!!!!!!!

Jump to post
  • Thu Mar 28, 2019 2:45 am
  • Replies 12
  • Views 1589
Re: PHP to Twig Converter - PHP2TWIG

is there a tool to convert twig back to php ? I need the opposite to go from twig to php because the developer of a module mixed languages in a version of opencart 2.3 that does not have templates .twig only has .tpl and I do not work the features of the ocmod that I have repaired to repair I need ...

Jump to post
  • Wed Mar 27, 2019 2:08 pm
  • Replies 13
  • Views 13451
Re: PHP to Twig Converter - PHP2TWIG

is there a tool to convert twig back to php ? I need the opposite to go from twig to php because the developer of a module mixed languages in a version of opencart 2.3 that does not have templates .twig only has .tpl and I do not work the features of the ocmod that I have repaired to repair I need ...

Jump to post
  • Wed Mar 27, 2019 2:06 pm
  • Replies 13
  • Views 13451
Re: "SyntaxError: Unexpected end of JSON input OK" when I try to edit an order in 2.3.0.2

OK SOLVED, IN MY CASE IT WAS ONLY A MISTAKE IN THE PROGRAMMING OF A PLUGINS. I CORRECT THE ERROR CREATING A SIMPLE TEXT ALERT REPLACING THE OLD ALERT SOLVED DOWN TEXT _____________________________________________________________________ OK SOLUCIONADO, EN MI CASO SOLO SE TRATABA DE UN ERROR EN LA PR...

Jump to post
  • Sun Mar 10, 2019 1:28 am
  • Replies 5
  • Views 2871
Re: "SyntaxError: Unexpected end of JSON input OK" when I try to edit an order in 2.3.0.2

Any solution to the problem? It happened to me after editing several .js quet work with add to the shopping cart but return them to how they were still the error continues. clean vqmod cache and respective files, in addition to refresh modification ocmod I just have to review all the files where you...

Jump to post
  • Sun Mar 10, 2019 12:00 am
  • Replies 5
  • Views 2871
Re: Botón en carrito

LA SOLUCIÓN MAS EFECTIVA Y RÁPIDA SIN TENER QUE MODIFICAR GRAN CANTIDAD DE ARCHIVOS ES ESTA: van a catalog/view/javascript/font-awesome/css/font-awesome.min.css buscan .fa-shopping-cart:before{content:"\f07a"} y la reemplazan por el código de su elemento al que quieran poner como icono del carro eje...

Jump to post
  • Sat Mar 09, 2019 3:26 am
  • Replies 9
  • Views 1737
Re: Botón en carrito

Encontré la solución, luego de pasar a revisar todo el awesome y css boostrap mas bibliotecas encontré que solo se debia cambiar aparte de donde ya mencione antes, en el cart.tpl jejeje es ahi donde saca el template el icono para el carro en general lineas Nº 2 y Nº 49 de catalog/view/theme/default/...

Jump to post
  • Sat Mar 09, 2019 2:46 am
  • Replies 9
  • Views 1737
Re: Botón en carrito

alguien sabe donde cambiar el icono del carro de compra que aparece en https://i.ibb.co/pdSGsh5/Sin-t-tulo-1.jpg https://ibb.co/89HTRYt ya encontré que debo cambiarlo en /catalog/view/javascript/common.js en todas las lineas de estas $('#cart > button').html('<span id="cart-total"><i class="fa fa-sh...

Jump to post
  • Fri Mar 08, 2019 2:02 pm
  • Replies 9
  • Views 1737
Re: Numero de productos por fila

5 productos 5productos.jpg 3 Productos 3productos.jpg que loco yo hice eso de poner 4 imagenes, y ahora no logro recordar que hice porque fue hace 3 años atras, y ahora me veo con el problema de querer mostrar mas productos y no logro encontrar que fue lo que hice, usando oc2.3 jajaja hay que memor...

Jump to post
  • Thu Feb 21, 2019 12:05 am
  • Replies 10
  • Views 1973
Re: Numero de productos por fila

5 productos 5productos.jpg 3 Productos 3productos.jpg que loco yo hice eso de poner 4 imagenes, y ahora no logro recordar que hice porque fue hace 3 años atras, y ahora me veo con el problema de querer mostrar mas productos y no logro encontrar que fue lo que hice, usando oc2.3 jajaja hay que memor...

Jump to post
  • Wed Feb 20, 2019 11:50 pm
  • Replies 10
  • Views 1973

Search found 52 matches