Switch to only display products purchased by logged in user on shopify - shopify

I need a switch or checkbox on my site that makes the whole site only display products the logged in user has purchased before, or they can choose to display the whole catalog.
I'm not super keen on editing every product loop shopify uses, so if any of you guys have another idea, I'm very open to it!
Thanks all.

Related

Prestashop, order product from supplier

In a new Prestashop installation I need to achieve on certain products, a on-hold status, meaning, for instance,
Some products are in stock ready to ship.
Other products must be ordered and will take 1 or 2 weeks to be delivered.
I've seen web stores where this info is displayed, my question is the following, is there a module that enbales this possibility? For instance, automaticly split the order with ready to stock items and order from supplier items?
Thanks,
Kind Regards
Prestashop already has this functionality, so no need for a module.
On the admin page, click on catalog->products. Then click the edit button for the product you want to change (should look like a paper and pencil). Click on the quantities tab, and then select 'Allow orders' under 'When out of stock'. You can then provide the message you want the user to see when the product is in stock, and the message they see when it's out of stock at the bottom of the page. Hit save you're done, at least for that product.

Prestashop Sell Option - Preowned Items

I'm completely new to Prestashop.
I have selected Prestashop as my platform for creating my intended shopping site. But I'd like to add one option "Sell" beside "Buy" button.
On clicking the "Sell" button it'll take me to a page, where the user needs to fill up a form, which will designed by me ofcourse with few textbox and dropdowns, And once he goes through the process, the data's will be saved in database.
Now in PHP, I can write this code within minutes, but I don't know and have no idea how to integrate this thing in prestashop.
So if anyone here can please help me out, I'll be glad.
Allow me to let you know, that I want this "Sell" idea on my shopping site, where generally people comes to Buy, is because I want to enable my site for 2nd Hand items, i.e. refurbished items. So I need an option to buy refurbished items through which users can sell me their refurbished items.
I don't know whether any plugin is available for this, though I don't see any normally through basic searching.
You need to develop your own module, which will show the "Sell" button using a hook in Prestashop template file(s), and create a new resource (your page with form) in your shop. Check Prestashop documentation and tutorials, Creating a Prestashop module and adding custom hooks in tpl files can be found at Creating custom hooks ... blog.

sub menu based on logged in role

I'm trying to learn ASP.NET MVC and have created new project. My first thought was how am I going to provide users means of accessing system areas and functionality.
I am, initially, looking at 2 user roles of User and Administrator. I searched and found the post below on displaying menus based on roles and this is great but I need a method of displaying differing sub menu's for a user and an administrator, for instance an administrator might be able to amend a customers credit limit etc.. but user not. Ideally I would show a sub menu beneath customer menu for CreditLimit that user would not be shown but admin would?
http://techbrij.com/role-based-menu-asp-net-mvc
Is this possible or should I simply create a "Customer" area and show/not show buttons/links on this page based on logged in role?
Thanks for any advice.

How to get Multiple Inputs

I was thinking of implementing picture uploading to my web application.
Now there are few Uncertainties.It would be great if some one makes them clear.
How do you allow user to upload multiple data for
Example. I have a model for car and I want user to add as many pictures with comments. Usually on websites there is button that says "Add another picture". If user clicks that button or link a text field and a Browse button appears and user can add as many pictures as he wants.
You need to go through this wiki -
http://www.yiiframework.com/wiki/176/uploading-multiple-images-with-cmultifileupload/

Pop up Alerts in moss 2010 Intranet site

I need to create alerts to group/all employees in my site.To my site home page basing on the data pushed into "custome list" by administrator in moss 2010 intranet site.So can any one suggest steps to acheive this.Hoping quick replys...
Create a simple workflow using SharePoint designer and send out alerts/notification emails to the users in the group when something happens in your list (like a costume worth more than 100 bucks is entered etc..). You can trigger this notifications workflow in many scenarios.
See this link.
Check out this video on how to create workflows using designer.
Having said that, if you need a pop-up or a message box to appear when a user visits the site (and ofcourse when something changed on your list) then you have to write code in the load event of the page/any web part on the page to display popup. SharePoint 2010 has Javascript API which makes it easy for you to display pop-up or you can do this totally in the code.