<commit_before><?php

class Ryaan_MembersOnly_Block_Price_Clone extends Mage_Catalog_Block_Product_View
{
    use Ryaan_MembersOnly_Block_TOverride;

    const NAME_IN_LAYOUT = 'product.clone_prices';

    /**
     * Handle the non-member view
     */
    protected function handleGuestView()
    {
        if ($this->getNameInLayout() == self::NAME_IN_LAYOUT) {
            $this->setTemplate(null);
        }
    }
}<commit_msg>Hide "Add to Cart" when customer is not signed in.<commit_after><?php

class Ryaan_MembersOnly_Block_Price_Clone extends Mage_Catalog_Block_Product_View
{
    use Ryaan_MembersOnly_Block_TOverride;

    protected $rewriteBlocks = [
        'product.clone_prices',
        'product.info.addtocart',
        'product.info.addto'
    ];

    /**
     * Handle the non-member view
     */
    protected function handleGuestView()
    {
        if (in_array($this->getNameInLayout(), $this->rewriteBlocks)) {
            $this->setTemplate(null);
        }
    }
}
{'fraction_non_alphanumeric': 0.1051567239635996, 'fraction_numerical': 0.0, 'mean_word_length': 2.944223107569721, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6540040', 'n_tokens_mistral': 316, 'n_tokens_neox': 310, 'n_words': 53}