top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Shopify- Reoder collection array in Rails?

0 votes
398 views

I have working on shopify liquid. I need to show the sold out products in last page (in last page of the pagination).
example.If I have 10 soldout products in my collection array. This items should show the last page of the pagination.

posted Jul 6, 2015 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
Is there a question there? What are you having trouble with? What have you tried?
I have 200 products in collection page. Each page have different number of sold out products showing in different places. I can able to show the sold out products in each page bottom row.
But I should show the sold out products in last page only on the collection list.

Similar Questions
0 votes

I was reading the docs for primary key on postgresql and I saw that there was a way to add a custom stored procedure that returns a UUID. There is a test case as well that uses a custom uuid generator

https://github.com/rails/rails/blob/650ea5e5cf50d8a**********cf1762922d330a8/activerecord/test/cases/adapters/postgresql/uuid_test.rb#L193

But I was not sure how to to implement this myself. Like in the test case where do I place my_uuid_generator() and how to implement it in my rails application?

+1 vote

Am trying to send email with yahoo mail but it is not working but, with gmail works fine can someone correct me if anything is wrong in my smtp.

    production:
 :address: smtp.yahoo.mail.com
 :port: 587
 :user_name: test@yahoo.com
 :password: test
 :authentication: plain
 :enable_starttls_auto: true
 :domain : test.com
0 votes

I have a server with 20Cores / 40Threads.I used to have only one website app (rails / unicorn / nginx , 40 workers) on it and everything was working well. Recently I added a new website app (rails / unicorn / nginx, 2 workers) and since this, I have much less requests for my first website. htop stats seems to be normal.

How can I find out where is the bottle neck ? Maybe it is link with network, as my second apps is making external requests ? Or maybe IO access as my second apps is also reading and writting in the ssd disk..

...