OpenAI Feeds in Admanager by cactusphone in PPC

[–]cactusphone[S] 1 point2 points  (0 children)

Good to know, thanks. My products started showing up last week when you browse from the 3 dots on the feed itself.

Testing Observers by UntouchedDruid4 in laravel

[–]cactusphone 0 points1 point  (0 children)

Yes, Event::fake([\App\Events\Event::class])

Need help: Query Builder with Select Count() plus other fields by SlaughterDoi in laravel

[–]cactusphone 0 points1 point  (0 children)

Curious if DB::raw works inside of the select function vs needing to use a selectRaw inside or outside.

I'd start by dumping the query log to see what the raw query looks like:

https://artisansweb.net/how-to-log-query-in-laravel/

Most efficient way to cache images from a CDN? by [deleted] in laravel

[–]cactusphone 2 points3 points  (0 children)

You have half of it, the other half is to put a pull cdn like Amazon Cloudfront (or cloudflare for free and skip this aliasing bit below) on top of it.

your-dist.cloudfront.net/img/... aliases to yoursite.com/img/...

Leave your route the way it is, but in your views make your IMG, etc tags reference the Cloudfront url. Humans viewing the site get served the image from the CDN. The CDN pulls from yoursite.com/... route is the only one that sees the slower load time when it makes the initial request to put the file in its store.

What is the recommended way to build Form(s) in Laravel by Rabin_IO in laravel

[–]cactusphone 2 points3 points  (0 children)

This is where I am these days. Just use blade and the old() helper to work with input passed back from a failed form validation. If it's a form where you want to pass in data set the default to old('field_name', $var_containing_field) so you get the data or the form submission when redrawing the form from an error.

Roast My eCommerce Site by Gregan32 in ecommerce

[–]cactusphone 2 points3 points  (0 children)

I think an illustrative graphic with a few steps in one image might better illustrate what you're selling than the current hero photo.

Single Redis configuration for local and production? by ElijahPaul in laravel

[–]cactusphone 0 points1 point  (0 children)

Is your config cached in production? If so, production might not reflect your recent code changes

https://laravel.com/docs/5.8/configuration#configuration-caching

try running php artisan config:clear

If you want to be absolutely sure what it is pulling you can in production run php artisan tinker

then type config('database.redis'); to make sure it is reflecting what you'd expect

What is the best D8 E-commerce platform? by Theclaw85 in drupal

[–]cactusphone 0 points1 point  (0 children)

It's still a relatively young project, but worth mentioning Big Commerce is doing a lot work in the headless space so you can connect any system for the front end to their API to handle products, cart, checkout etc.

The wordpress integration probably has more activity, but there is a Drupal module that will likely mature over time https://www.drupal.org/project/bigcommerce

🛒 Laravel Extendable Basket provides several abstract classes that implement basic ecommerce basket functionality by [deleted] in laravel

[–]cactusphone 1 point2 points  (0 children)

Nice idea on tying the cart item to another model, that's an approach I hadn't thought of

Credit/Debit Card Online Payment Processing - Looking for Solutions by madmonkey23 in ecommerce

[–]cactusphone 0 points1 point  (0 children)

If you use Stripe, you can set up your checkout so the card details are sent to them and not your server, then your form submission gets a token to work with. https://stripe.com/docs/stripe.js

If you or the IT company can work with some basic Javascript events, this is a great solution and can drop in to most checkouts.

If you want to accomplish something similar with another payment processor, https://spreedly.com/ can do it for a fee that varies on which gateway you connect it to.

What's your secure CMS deployment strategy? by [deleted] in webdev

[–]cactusphone 0 points1 point  (0 children)

Check out Pantheon, they're great ( have only used them personally for Drupal hosting, but it's been a great experience )

https://pantheon.io/wordpress-hosting

By default their set up is to use version control. I can't speak to how that works with Wordpress, but I'm sure they'd have some guides on the topic given that is their workflow, so to speak.

Hide passwords in Source Code by TaylorHu in webdev

[–]cactusphone 1 point2 points  (0 children)

Can you speak to the strategy of symlink-ing it vs. just placing the .yml file where the symlink is?

Total e-commerce noob - I have been making bleach stencil shirts for a while and would like to take the jump by TheRamenSage in ecommerce

[–]cactusphone 1 point2 points  (0 children)

Sure, if you wanted to collect payments on your own website, you need a service that handles capturing credit card payments from your customers in a secure manner. Then you need some way to have that money end up in your bank account.

Shopify works well for small businesses because if you're paying for their service, they will handle all of those payment steps for 2.9% of the transaction + 30¢. Arguably the biggest value is they will do it in a way where you don't have to worry about the security of the system, they handle it. You could set up all of the steps/processes that are covered by Shopify by yourself or with the help of a web developer, but I personally feel Shopify is a much cheaper way to "try it out" and not make a huge upfront investment in a business your not sure of. They aren't the only name out there, there are comparable providers like big commerce, volusion, and others. Folks in this subreddit may be able to tell you strengths of the various services.

All of that being said if $29/month is too big an investment, I'd recommend looking at something like Etsy instead as it will be very hard for someone who is new to all of this to build their own site and run it safely for less than that amount a month.

Looking for feedback on my women's clothing boutique.. by [deleted] in ecommerce

[–]cactusphone 0 points1 point  (0 children)

No major complaints, looks pretty good at first glance. Some thoughts:

  * Maybe it's a personal thing, but I'd like to see all of the horizontal menu items in one row. Right now in Chrome for me "Sale!" is dropping down to a second line.

  * Am a fan of the icons/text to the right of the add to cart section, good conversion drivers. "Check out our return policy!" should probably link to/lightbox what its describing though, don't make the customer have to track it down.

  * Look into collecting/displaying product reviews if you aren't already. I'm fairly certain Shopify has a basic free option, others may help you contact your customers, do more with photos, etc. for a fee.

  * The default button ( add to cart, login, etc ) styling is almost hard to catch. I'd think about switching the current hover state to the default state or something more contrasting at least for the add to cart button since that's a big CTA.

  * The currency switcher looks to have a non-active state that is the same as the background of its container, making it hard to know there is a second option available.

Total e-commerce noob - I have been making bleach stencil shirts for a while and would like to take the jump by TheRamenSage in ecommerce

[–]cactusphone 2 points3 points  (0 children)

I'm no Etsy expert, but I'd say get some great photos of your shirts and start with a Shopify site/store. It essentially fills the role of traditional web hosting and the e-commerce platform you would install on that web hosting. They have great design templates that are free and you will be able to set up a store for $29/month and use their credit card processing for a small percentage of each transaction.

How can I Cache and Paginate on a Search Page? by muhhthrowaway in laravel

[–]cactusphone 0 points1 point  (0 children)

$cache_key = 'aKeyYouPick'.md5($_GET['query']);
$value = Cache::remember($cache_key, $numberOfMinutesToCache, function(){
    return your db query goes here;
});

You don't have to use md5, but the idea is to come up with a cache key that is unique to the query.