V
V
Vladislav Balabanovich2015-08-31 14:45:00
SQL
Vladislav Balabanovich, 2015-08-31 14:45:00

How to create ajax cart widget in woocommerce?

Tell me how to implement the cart ajax widget in woocommerce - initially the widget is not visible, and appears when the first product is sent to the cart , it is a simple carousel in which all the goods added to the cart are scrolled (more precisely, their image), you can also remove from this "basket" goods.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Somewhere Intech, 2019-03-17
@0ldn0mad

0ldn0mad ,

SELECT * 
FROM (
   SELECT * 
   FROM workers 
   WHERE id >0 LIMIT 2,6 
) AS T1
ORDER BY age

V
Vitsliputsli, 2019-03-17
@Vitsliputsli

What does "Get workers two through six" mean? In normal operation, this is not done through LIMIT, because he will give us who knows who, and we most likely need specific workers, I will assume that from the 2nd to the 6th by id, then:

SELECT 
        * 
    FROM workers 
    WHERE id>=2 AND id<=6
    ORDER BY age

K
Konstantin Tsvetkov, 2019-03-17
@tsklab

second to sixth
There are no numbers in the DBMS, only sort order.
The identifier usually starts with 1.
select first, then sort
Subquery.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question